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: 2 days ago
JSON representation
Examples for the Telegram.Bot C# Library
- Host: GitHub
- URL: https://github.com/telegrambots/telegram.bot.examples
- Owner: TelegramBots
- License: mit
- Created: 2016-01-13T18:08:10.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2025-04-11T22:41:02.000Z (about 1 month ago)
- Last Synced: 2025-05-15T22:26:35.149Z (3 days ago)
- Topics: bot, csharp, examples, fsharp, telegram, telegram-bot, telegram-bot-api
- Language: C#
- Homepage:
- Size: 2.4 MB
- Stars: 671
- Watchers: 43
- Forks: 304
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Telegram.Bot Examples
[](https://t.me/joinchat/B35YY0QbLfd034CFnvCtCA)
[](https://www.nuget.org/packages/Telegram.Bot)
[](https://telegrambots.github.io/book/)
[](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)!