telegram.error module¶
This module contains an object that represents Telegram errors.
-
exception
telegram.error.BadRequest(message)¶ Bases:
telegram.error.NetworkError
-
exception
telegram.error.ChatMigrated(new_chat_id)¶ Bases:
telegram.error.TelegramError- Parameters
new_chat_id (
int) –
-
exception
telegram.error.Conflict(msg)¶ Bases:
telegram.error.TelegramErrorRaised when a long poll or webhook conflicts with another one.
- Parameters
msg (
str) – The message from telegrams server.
-
exception
telegram.error.InvalidToken¶ Bases:
telegram.error.TelegramError
-
exception
telegram.error.NetworkError(message)¶ Bases:
telegram.error.TelegramError
-
exception
telegram.error.RetryAfter(retry_after)¶ Bases:
telegram.error.TelegramError- Parameters
retry_after (
int) –
-
exception
telegram.error.TelegramError(message)¶ Bases:
Exception
-
exception
telegram.error.TimedOut¶ Bases:
telegram.error.NetworkError
Bases:
telegram.error.TelegramError