Telegram.BotAPI
Telegram.BotAPI copied to clipboard
Telegram Bot API NET. One of the most complete libraries available to interact with the Telegram Bot API.
I like your lib, can you please remove all those `obsolete` files ( and Surgar lib? what is that?)? and make as less code files as possible? so i may...
In my code, I tried to intercept all possible errors in the bot that could occur, but it still shuts down after a while. What could be the reason for...
Hi! I have a certain file already uploaded to Telegram and I have its FileId. Is there a way to initialize the `InputFile` from it, so that I don't have...
var botToken = "tokenID..."; bot = new BotClient(botToken); long chatId = -XXXXXX; bot.SendMessage(chatId, "Test"); ObjectDisposedException: Cannot access a disposed object. Object name: 'System.Net.Http.StreamContent'.
Library contains methods and types for Telegram Passport. Are there any examples of how to use these methods?
```c# if (update.Type == UpdateType.Message) chatId = update.Message.Chat.Id; ``` but how handle all other types? ```c# if (update.Type != UpdateType.Message) { chatId = ???; await bot.SendMessageAsync(chatId, "Message is not a...
Hello Im using longpolling to get messages, net core 3.1 Telegram.BotAPI version 6.6.1 ` public void StartPolling() { var updates = Bot.GetUpdates(); while (true) { if (updates.Any()) { foreach (var...
Greetings, I am using your library (package) to send notifications in a telegram, but I ran into such a problem that my token is also sent in network traffic when...
I use ILMerge nuget package: [MSBuild.ILMerge.Task](https://www.nuget.org/packages/MSBuild.ILMerge.Task/1.1.3) to merge assemblies But it doesn't work with Telegram.BotAPI See error log: ``` ILMerge.Merge: The assembly 'System.Threading.Tasks.Extensions' was not merged in correctly. It is...
Bumps System.Text.Json from 8.0.3 to 8.0.4. [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a...