The Wayback Machine - https://web.archive.org/web/20210322131317/https://github.com/topics/telegram-bot
Skip to content
#

telegram-bot

telegram logo

Telegram is a non-profit, cloud-based instant messaging service. It offers open source clients for a multitude of operating systems and powerful APIs that allow developers to create their own clients and chat bots.

Here are 6,170 public repositories matching this topic...

wetterkrank
wetterkrank commented Jan 30, 2021

Looks like the error message string expected by BotKicked exception isn't matching the current Telegram API response.
So the BotKicked exception is never raised.

Expected Behavior

BotKicked exception should be raised.

Current Behavior

TelegramAPIError exception is raised with the following message: "Forbidden: bot was kicked from the group chat".
However, BotKicked exce

raid-7
raid-7 commented Jul 7, 2020

In terms of Telegram bot API the maximum polling time of getUpdates is referred to as timeout. That is if there are pending updates, Telegram will return them immediately. In the other case, it will wait for timeout seconds and then answer with an empty list.

The telegram-bot Rust library has its own notion of timeouts. getUpdates' timeout [i

mtproto
aofei
aofei commented Mar 6, 2021

Is your feature request related to a problem? Please describe.

I think people may prefer to have the ability to cancel their requests at any time.

Describe the solution you'd like

Add context.Context to every func/method that involves network operations.

Describe alternatives you've considered

N/A

Additional context

This isn't a difficult feature to imple

Created by Telegram Messenger LLP

Released August 2013

Website
telegram.org
Wikipedia
Wikipedia