VOOZH about

URL: https://www.nuget.org/packages/WTelegramBot/

⇱ NuGet Gallery | WTelegramBot 10.0.1




👁 Image
WTelegramBot 10.0.1

dotnet add package WTelegramBot --version 10.0.1
 
 
NuGet\Install-Package WTelegramBot -Version 10.0.1
 
 
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="WTelegramBot" Version="10.0.1" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="WTelegramBot" Version="10.0.1" />
 
Directory.Packages.props
<PackageReference Include="WTelegramBot" />
 
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add WTelegramBot --version 10.0.1
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: WTelegramBot, 10.0.1"
 
 
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package WTelegramBot@10.0.1
 
 
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=WTelegramBot&version=10.0.1
 
Install as a Cake Addin
#tool nuget:?package=WTelegramBot&version=10.0.1
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

👁 Bot API 10.0
👁 NuGet version
👁 NuGet prerelease
👁 Donate

Powerful Telegram Bot API library for .NET

WTelegramBot is a full rewrite in pure C# of Telegram Bot API server, presenting the same methods as the Telegram.Bot library for easy migration.

The library is built on top of WTelegramClient to connect directly to Telegram Client API and gives you additional control over your bot, updates and call methods normally impossible to use with Bot API.

Advantages of WTelegram.Bot

Using class WTelegram.Bot you have access to a clean set of developer-friendly methods to easily access the Bot API

You can also call Client API methods that are possible for bots but not accessible from Bot API! Some examples:

  • Fetch past messages of group/channel
  • Get group/channel members list
  • Get existing forum topic details
  • Resolve user/chat usernames
  • Get full details of users/chats
  • Send/receive big files (and track download progress)
  • Connect using a MTProxy
  • Monitor progress of file uploads/downloads

You also get access to raw Updates information from Client API, in addition to the usual Bot API updates. They contain more information than the limited set of Bot API updates! Some examples:

  • Detect deletion of messages (not always immediate)
  • Get more info on message media (like date of original media upload, sticker duration, ...)
  • Notification when your messages were read in a group

See the Example app for a nice demonstration of features.

➡️ There are still a lot of restrictions to bots, even via Client API, so don't expect to be able to do many fancy things

<a name="migration"></a>

Difference between classes WTelegram.Bot and TelegramBotClient

The library contains a compatibility layer as Telegram.Bot.WTelegramBotClient inheriting from WTelegram.Bot.
Click here to easily migrate your existing Telegram.Bot code.

If you're not migrating an existing codebase, it is recommended that you use WTelegram.Bot class directly. Here are the main differences:

  • There is no CancellationToken parameter because it doesn't make sense to abort an immediate TCP request to Client API.
    (Even with HTTP Bot API, it didn't make much sense: You can use cancellationToken.ThrowIfCancellationRequested() at various points of your own code if you want it to be cancellable)
  • In case of an error, WTelegram.Bot will throw WTelegram.WTException like TL.RpcException showing the raw Telegram error, instead of an ApiRequestException
  • WTelegram.Bot and WTelegramBotClient are IDisposable, so remember to call .Dispose()

How to access the advanced features?

The Example app demonstrates all of the features below.

On each Update/Message/User/Chat you receive, there is an extra field named "TL..." that contains the corresponding raw Client API structure, which may contain extra information not transcribed into the Bot API

You can also enable property WantUnknownTLUpdates to receive updates that usually would have been silently ignored by Bot API (they will be posted as Update of type Unknown with the TLUpdate field filled)

Some extended API calls can be made via WTelegram.Bot special methods:

  • GetChatMemberList: fetch a list of chat members
  • GetMessagesById: fetch posted messages (or range of messages) based on their message IDs
  • GetChat: can obtain details about any user/group/channel based on their public name
  • GetForumTopic/GetForumTopicExtended: get details about existing forum topic

Other extended API calls not usually accessible to Bot API can be made via the Bot.Client property which is the underlying WTelegramClient instance.

  • This way, you can use new features available only in Client API latest layers without waiting months for it to be available in Bot API

For more information about calling Client API methods, you can read that library's documentation or search through the official Client API documentation, but make sure to look for the mention "Bots can use this method" (other methods can't be called).

Note: If you want to experiment with these, you'll need to add a using TL; on top of your code, and these calls might throw TL.RpcException instead of ApiRequestException

Some other WTelegram.Bot methods (for example, beginning with Input*) and extension methods can help you convert Bot API ids or structure to/from Client API.

Help with the library

This library is still quite new but I tested it extensively to make sure it covers all of the Bot API successfully.

If you have questions about the (official) Bot API methods from TelegramBotClient, you can ask them in Telegram.Bot support chat.

If your question is more specific to WTelegram.Bot, or an issue with library behaviour, you can ask them in @WTelegramClient.

If you like this library, you can buy me a coffee ❤ This will help the project keep going.

© 2021-2026 Olivier Marcoux

Product Versions Compatible and additional computed target framework versions.
.NET net5.0 net5.0 was computed.  net5.0-windows net5.0-windows was computed.  net6.0 net6.0 is compatible.  net6.0-android net6.0-android was computed.  net6.0-ios net6.0-ios was computed.  net6.0-maccatalyst net6.0-maccatalyst was computed.  net6.0-macos net6.0-macos was computed.  net6.0-tvos net6.0-tvos was computed.  net6.0-windows net6.0-windows was computed.  net7.0 net7.0 was computed.  net7.0-android net7.0-android was computed.  net7.0-ios net7.0-ios was computed.  net7.0-maccatalyst net7.0-maccatalyst was computed.  net7.0-macos net7.0-macos was computed.  net7.0-tvos net7.0-tvos was computed.  net7.0-windows net7.0-windows was computed.  net8.0 net8.0 is compatible.  net8.0-android net8.0-android was computed.  net8.0-browser net8.0-browser was computed.  net8.0-ios net8.0-ios was computed.  net8.0-maccatalyst net8.0-maccatalyst was computed.  net8.0-macos net8.0-macos was computed.  net8.0-tvos net8.0-tvos was computed.  net8.0-windows net8.0-windows was computed.  net9.0 net9.0 was computed.  net9.0-android net9.0-android was computed.  net9.0-browser net9.0-browser was computed.  net9.0-ios net9.0-ios was computed.  net9.0-maccatalyst net9.0-maccatalyst was computed.  net9.0-macos net9.0-macos was computed.  net9.0-tvos net9.0-tvos was computed.  net9.0-windows net9.0-windows was computed.  net10.0 net10.0 was computed.  net10.0-android net10.0-android was computed.  net10.0-browser net10.0-browser was computed.  net10.0-ios net10.0-ios was computed.  net10.0-maccatalyst net10.0-maccatalyst was computed.  net10.0-macos net10.0-macos was computed.  net10.0-tvos net10.0-tvos was computed.  net10.0-windows net10.0-windows was computed. 
.NET Core netcoreapp2.0 netcoreapp2.0 was computed.  netcoreapp2.1 netcoreapp2.1 was computed.  netcoreapp2.2 netcoreapp2.2 was computed.  netcoreapp3.0 netcoreapp3.0 was computed.  netcoreapp3.1 netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 netstandard2.0 is compatible.  netstandard2.1 netstandard2.1 was computed. 
.NET Framework net461 net461 was computed.  net462 net462 was computed.  net463 net463 was computed.  net47 net47 was computed.  net471 net471 was computed.  net472 net472 was computed.  net48 net48 was computed.  net481 net481 was computed. 
MonoAndroid monoandroid monoandroid was computed. 
MonoMac monomac monomac was computed. 
MonoTouch monotouch monotouch was computed. 
Tizen tizen40 tizen40 was computed.  tizen60 tizen60 was computed. 
Xamarin.iOS xamarinios xamarinios was computed. 
Xamarin.Mac xamarinmac xamarinmac was computed. 
Xamarin.TVOS xamarintvos xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (4)

Showing the top 4 NuGet packages that depend on WTelegramBot:

Package Downloads
GLV.Shared.ChatBot.Telegram

Avoid using if you're not affiliated with us! No public documentation or source code is provided for this!

ZiziBot.TelegramBot.Framework

Building command-based Telegram Bot

Telegrator.Hosting.WideBot

Package Description

TelegramDataStorage.WTelegramBot

Store your data (config, session, etc.) in a telegram chat.

GitHub repositories (2)

Showing the top 2 popular GitHub repositories that depend on WTelegramBot:

Repository Stars
Riniba/TelegramMonitor
Telegram监听关键词|TG抓需求|实时监测频道|telegram关键词监控|电报|tg关键词监控|telegram监控机器人|主动获取|消息订阅|telegram消息监控|tg自动发送消息|telegram群消息接收|关键词报警|多群监控|自动化群管理|telegram数据分析 Telegram Keyword Listening | TG Demand Capture | Real-Time Channel Monitoring | Telegram Keyword Monitoring | Telegram | TG Keyword Monitoring | Telegram Monitoring Bot | Active Retrieval | Subscription
DamianMorozov/OpenTgResearcher
OpenTgResearcher - tool for analyzing Telegram chats and downloading their content
Version Downloads Last Updated
10.0.1 324 6/1/2026
10.0.1-dev.10.0.0 48 6/1/2026
10.0.1-dev.1 50 6/1/2026
9.6.1-dev.2 64 5/12/2026
9.6.0 1,412 5/1/2026
9.6.0-dev.1 60 5/1/2026
9.5.1 1,457 4/11/2026
9.5.1-dev.1 77 4/11/2026
9.5.0 482 4/5/2026
9.5.0-dev.1 74 4/5/2026
9.4.0 422 3/8/2026
9.4.0-dev.3 71 3/8/2026
9.4.0-dev.2 72 3/7/2026
9.3.2-dev.1 86 2/6/2026
9.3.1 402 2/3/2026
9.3.1-dev.1 79 2/3/2026
9.3.0 756 1/3/2026
9.3.0-dev.1 82 1/3/2026
9.2.4 336 12/31/2025
Loading failed

Bot API 10.0

Also:
- Fix handling InputKeyboardButtonUserProfile
- Fix ReplyMarkup returned for short sent messages
- Fix SwitchInlineQueryChosenChat not returned
- Check UpdateBotGuestChatQuery.reference_messages for the ReplyTo msg