Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/TelegramBots/Telegram.Bot.Examples

Examples for the Telegram.Bot C# Library
https://github.com/TelegramBots/Telegram.Bot.Examples

bot csharp examples fsharp telegram telegram-bot telegram-bot-api

Last synced: 12 days ago
JSON representation

Examples for the Telegram.Bot C# Library

Awesome Lists containing this project

README

        

# Telegram.Bot Examples

[![Telegram chat](https://img.shields.io/badge/Support_Chat-Telegram-blue.svg?style=flat-square)](https://t.me/joinchat/B35YY0QbLfd034CFnvCtCA)
[![Nuget](https://img.shields.io/badge/dynamic/json?url=https://pkgs.dev.azure.com/tgbots/Telegram.Bot/_packaging/release/nuget/v3/flat2/Telegram.Bot/index.json&query=versions%5B-1%3A%5D&style=flat-square&label=Telegram.Bot&color=d8b541)](https://dev.azure.com/tgbots/Telegram.Bot/_artifacts/feed/release/NuGet/Telegram.Bot)
[![Documentations](https://img.shields.io/badge/Documentations-Book-orange.svg?style=flat-square)](https://telegrambots.github.io/book/)
[![Build status](https://img.shields.io/github/actions/workflow/status/TelegramBots/Telegram.Bot.Examples/.github/workflows/build_examples.yml?branch=master&style=flat-square)](https://github.com/TelegramBots/Telegram.Bot.Examples/actions/workflows/build_examples.yml)

## About

This repository contains sample applications based on [Telegram.Bot](https://github.com/TelegramBots/Telegram.Bot) library:

- [Console application](https://github.com/TelegramBots/Telegram.Bot.Examples/tree/master/Console). Demonstrates bot with some basic features.
- [Advanced console application](https://github.com/TelegramBots/Telegram.Bot.Examples/tree/master/Console.Advanced). Demonstrates bot with advanced .NET programming features.
- [ASP.NET Core Webhook application](https://github.com/TelegramBots/Telegram.Bot.Examples/tree/master/Webhook.MinimalAPIs) with Minimal APIs.
- [ASP.NET Core Webhook application](https://github.com/TelegramBots/Telegram.Bot.Examples/tree/master/Webhook.Controllers) with Controllers.

### Community projects

- [GreenCaptchaBot](https://github.com/ImoutoChan/GreenCaptchaBot) a spam-protection bot. This is a bot that will ask the users coming to a Telegram chat to press a random numbered button.
- [vahter-bot](https://github.com/fsharplang-ru/vahter-bot) the bot that bans.

### Legacy projects

These projects represent older or deprecated technologies you might want to use, though we do not provide any support for those projects:

- [Classic ASP.NET MVC 5 application](https://github.com/TelegramBots/Telegram.Bot.Examples/tree/legacy-ASPNET).
- [Simple console application](https://github.com/TelegramBots/Telegram.Bot.Examples/tree/legacy-events). Based on build-in events system.

## Requirements

Examples in this repository use .NET 6 or 8. You might need to install required version from [here](https://dotnet.microsoft.com/download).

## Community

Feel free do join our [discussion group](https://t.me/tgbots_dotnet)!