Telegram.Bot is the most popular .NET client for Telegram Bot API, allowing developers to build bots for Telegram messaging app.
This book covers all you need to know to create a chatbot in .NET, with many concrete examples written in C#.
Begin with our Quickstart, or choose from the Table Of Content (left/top), and don't miss our useful Frequently Asked Questions.
Install the package from Nuget using Nuget package manager (in your IDE or command line).
🎉 The problem with Nuget.org seems resolved. Our latest library version 22.* is now available on it!
Make sure to follow the Migration Guide for v22.* if you have existing bot code.
This book is filled with ready-to-use snippets of code, but you can also find full project examples at our Telegram.Bot.Examples Github repository, featuring:
- Simple Console apps (long polling)
- Webhook ASP.NET example (with Controllers or Minimal APIs)
- Full-featured advanced solution
- Serverless Functions implementations
Visit our | URL |
---|---|
Nuget feed | https://www.nuget.org/packages/Telegram.Bot |
Github repo | https://github.com/TelegramBots/Telegram.Bot |
Examples repo | https://github.com/TelegramBots/Telegram.Bot.Examples |
Telegram news channel | https://t.me/tgbots_dotnet |
Telegram support group | https://t.me/joinchat/B35YY0QbLfd034CFnvCtCA |
Team page | https://github.com/orgs/TelegramBots/people |