telegram.error module¶
This module contains an object that represents Telegram errors.
-
exception
telegram.error.BadRequest(message)¶ Bases:
telegram.error.NetworkError- Parameters
message (str) –
-
exception
telegram.error.ChatMigrated(new_chat_id)¶ Bases:
telegram.error.TelegramError- Parameters
new_chat_id (
int) – The new chat id of the group.
-
exception
telegram.error.Conflict(message)¶ Bases:
telegram.error.TelegramErrorRaised when a long poll or webhook conflicts with another one.
- Parameters
msg (
str) – The message from telegrams server.message (str) –
-
exception
telegram.error.InvalidToken¶ Bases:
telegram.error.TelegramError- Return type
None
-
exception
telegram.error.NetworkError(message)¶ Bases:
telegram.error.TelegramError- Parameters
message (str) –
-
exception
telegram.error.RetryAfter(retry_after)¶ Bases:
telegram.error.TelegramError- Parameters
retry_after (
int) – Time in seconds, after which the bot can retry the request.
-
exception
telegram.error.TelegramError(message)¶ Bases:
Exception- Parameters
message (str) –
-
exception
telegram.error.TimedOut¶ Bases:
telegram.error.NetworkError- Return type
None
Bases:
telegram.error.TelegramError- Parameters
message (str) –