telegram.error module

This module contains an object that represents a Telegram Error.

exception telegram.error.BadRequest(message)

Bases: telegram.error.NetworkError

exception telegram.error.ChatMigrated(new_chat_id)

Bases: telegram.error.TelegramError

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

exception telegram.error.TelegramError(message)

Bases: exceptions.Exception

This object represents a Telegram Error.

exception telegram.error.TimedOut

Bases: telegram.error.NetworkError

exception telegram.error.Unauthorized(message)

Bases: telegram.error.TelegramError