Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Telegram Bots Book

NuGet Repository

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.

🧩 Installation

Install the package “Telegram.Bot” from Nuget using Nuget package manager (in your IDE or command line).

Make sure to follow the Migration Guide for v22.* if you have existing bot code.

🪄 More examples

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

📖 Continue reading

Click on the right arrow (or keyboard arrow key) to go to the next page and read our quickstart guide.

You can also click on the Table of content menu (left/top) to access a specific chapter.