400 - Bad Request

exception pyrogram.errors.exceptions.bad_request_400.BadRequest(x: int = None, query_type: type = None)

Bad Request

CODE = 400

RPC Error Code

Type:int
exception pyrogram.errors.exceptions.bad_request_400.FirstnameInvalid(x: int = None, query_type: type = None)

The first name is invalid

ID = 'FIRSTNAME_INVALID'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.LastnameInvalid(x: int = None, query_type: type = None)

The last name is invalid

ID = 'LASTNAME_INVALID'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.PhoneNumberInvalid(x: int = None, query_type: type = None)

The phone number is invalid

ID = 'PHONE_NUMBER_INVALID'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.PhoneCodeHashEmpty(x: int = None, query_type: type = None)

phone_code_hash is missing

ID = 'PHONE_CODE_HASH_EMPTY'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.PhoneCodeEmpty(x: int = None, query_type: type = None)

phone_code is missing

ID = 'PHONE_CODE_EMPTY'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.PhoneCodeExpired(x: int = None, query_type: type = None)

The confirmation code has expired

ID = 'PHONE_CODE_EXPIRED'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.PhoneCodeInvalid(x: int = None, query_type: type = None)

The confirmation code is invalid

ID = 'PHONE_CODE_INVALID'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.ApiIdInvalid(x: int = None, query_type: type = None)

The api_id/api_hash combination is invalid

ID = 'API_ID_INVALID'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.PhoneNumberOccupied(x: int = None, query_type: type = None)

The phone number is already in use

ID = 'PHONE_NUMBER_OCCUPIED'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.PhoneNumberUnoccupied(x: int = None, query_type: type = None)

The phone number is not yet being used

ID = 'PHONE_NUMBER_UNOCCUPIED'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.UsersTooFew(x: int = None, query_type: type = None)

Not enough users (to create a chat, for example)

ID = 'USERS_TOO_FEW'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.UsersTooMuch(x: int = None, query_type: type = None)

The maximum number of users has been exceeded (to create a chat, for example)

ID = 'USERS_TOO_MUCH'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.TypeConstructorInvalid(x: int = None, query_type: type = None)

The type constructor is invalid

ID = 'TYPE_CONSTRUCTOR_INVALID'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.FilePartInvalid(x: int = None, query_type: type = None)

The file part number is invalid

ID = 'FILE_PART_INVALID'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.FilePartsInvalid(x: int = None, query_type: type = None)

The number of file parts is invalid

ID = 'FILE_PARTS_INVALID'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.FilePartMissing(x: int = None, query_type: type = None)

Part {x} of the file is missing from storage

ID = 'FILE_PART_X_MISSING'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.Md5ChecksumInvalid(x: int = None, query_type: type = None)

The MD5 checksums do not match

ID = 'MD5_CHECKSUM_INVALID'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.PhotoInvalidDimensions(x: int = None, query_type: type = None)

The photo dimensions are invalid

ID = 'PHOTO_INVALID_DIMENSIONS'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.FieldNameInvalid(x: int = None, query_type: type = None)

The field with the name FIELD_NAME is invalid

ID = 'FIELD_NAME_INVALID'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.FieldNameEmpty(x: int = None, query_type: type = None)

The field with the name FIELD_NAME is missing

ID = 'FIELD_NAME_EMPTY'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.MsgWaitFailed(x: int = None, query_type: type = None)

A waiting call returned an error

ID = 'MSG_WAIT_FAILED'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.PeerIdInvalid(x: int = None, query_type: type = None)

The id/access_hash combination is invalid

ID = 'PEER_ID_INVALID'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.MessageEmpty(x: int = None, query_type: type = None)

The message sent is empty

ID = 'MESSAGE_EMPTY'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.EncryptedMessageInvalid(x: int = None, query_type: type = None)

The special binding message (bind_auth_key_inner) contains invalid data

ID = 'ENCRYPTED_MESSAGE_INVALID'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.InputMethodInvalid(x: int = None, query_type: type = None)

The method called is invalid

ID = 'INPUT_METHOD_INVALID'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.PasswordHashInvalid(x: int = None, query_type: type = None)

Two-step verification password is invalid

ID = 'PASSWORD_HASH_INVALID'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.UsernameNotOccupied(x: int = None, query_type: type = None)

The username is not occupied by anyone

ID = 'USERNAME_NOT_OCCUPIED'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.UsernameInvalid(x: int = None, query_type: type = None)

The username is invalid

ID = 'USERNAME_INVALID'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.MessageIdInvalid(x: int = None, query_type: type = None)

The message id is invalid

ID = 'MESSAGE_ID_INVALID'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.MessageNotModified(x: int = None, query_type: type = None)

The message was not modified

ID = 'MESSAGE_NOT_MODIFIED'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.EntityMentionUserInvalid(x: int = None, query_type: type = None)

The mentioned entity is not an user

ID = 'ENTITY_MENTION_USER_INVALID'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.MessageTooLong(x: int = None, query_type: type = None)

The message text is over 4096 characters

ID = 'MESSAGE_TOO_LONG'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.AccessTokenExpired(x: int = None, query_type: type = None)

The bot token is invalid

ID = 'ACCESS_TOKEN_EXPIRED'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.BotMethodInvalid(x: int = None, query_type: type = None)

The method can’t be used by bots

ID = 'BOT_METHOD_INVALID'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.QueryTooShort(x: int = None, query_type: type = None)

The query is too short

ID = 'QUERY_TOO_SHORT'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.SearchQueryEmpty(x: int = None, query_type: type = None)

The query is empty

ID = 'SEARCH_QUERY_EMPTY'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.ChatIdInvalid(x: int = None, query_type: type = None)

The chat id is invalid

ID = 'CHAT_ID_INVALID'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.DateEmpty(x: int = None, query_type: type = None)

The date argument is empty

ID = 'DATE_EMPTY'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.PersistentTimestampEmpty(x: int = None, query_type: type = None)

The pts is empty

ID = 'PERSISTENT_TIMESTAMP_EMPTY'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.CdnMethodInvalid(x: int = None, query_type: type = None)

The method can’t be used on CDN DCs

ID = 'CDN_METHOD_INVALID'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.VolumeLocNotFound(x: int = None, query_type: type = None)

The volume location can’t be found

ID = 'VOLUME_LOC_NOT_FOUND'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.FileIdInvalid(x: int = None, query_type: type = None)

The file id is invalid

ID = 'FILE_ID_INVALID'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.LocationInvalid(x: int = None, query_type: type = None)

The file location is invalid

ID = 'LOCATION_INVALID'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.ChatAdminRequired(x: int = None, query_type: type = None)

The method requires chat admin privileges

ID = 'CHAT_ADMIN_REQUIRED'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.PhoneNumberBanned(x: int = None, query_type: type = None)

The phone number is banned

ID = 'PHONE_NUMBER_BANNED'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.AboutTooLong(x: int = None, query_type: type = None)

The about text is too long

ID = 'ABOUT_TOO_LONG'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.MultiMediaTooLong(x: int = None, query_type: type = None)

The album contains more than 10 items

ID = 'MULTI_MEDIA_TOO_LONG'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.UsernameOccupied(x: int = None, query_type: type = None)

The username is already in use

ID = 'USERNAME_OCCUPIED'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.BotInlineDisabled(x: int = None, query_type: type = None)

The inline feature of the bot is disabled

ID = 'BOT_INLINE_DISABLED'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.InlineResultExpired(x: int = None, query_type: type = None)

The inline bot query expired

ID = 'INLINE_RESULT_EXPIRED'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.InviteHashInvalid(x: int = None, query_type: type = None)

The invite link hash is invalid

ID = 'INVITE_HASH_INVALID'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.UserAlreadyParticipant(x: int = None, query_type: type = None)

The user is already a participant of this chat

ID = 'USER_ALREADY_PARTICIPANT'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.TtlMediaInvalid(x: int = None, query_type: type = None)

The media does not support self-destruction

ID = 'TTL_MEDIA_INVALID'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.MaxIdInvalid(x: int = None, query_type: type = None)

The max_id parameter is invalid

ID = 'MAX_ID_INVALID'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.ChannelInvalid(x: int = None, query_type: type = None)

The channel parameter is invalid

ID = 'CHANNEL_INVALID'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.DcIdInvalid(x: int = None, query_type: type = None)

The dc_id parameter is invalid

ID = 'DC_ID_INVALID'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.LimitInvalid(x: int = None, query_type: type = None)

The limit parameter is invalid

ID = 'LIMIT_INVALID'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.OffsetInvalid(x: int = None, query_type: type = None)

The offset parameter is invalid

ID = 'OFFSET_INVALID'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.EmailInvalid(x: int = None, query_type: type = None)

The email provided is invalid

ID = 'EMAIL_INVALID'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.UserIsBot(x: int = None, query_type: type = None)

A bot cannot send messages to other bots or to itself

ID = 'USER_IS_BOT'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.WebpageCurlFailed(x: int = None, query_type: type = None)

Telegram server could not fetch the provided URL

ID = 'WEBPAGE_CURL_FAILED'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.StickersetInvalid(x: int = None, query_type: type = None)

The requested sticker set is invalid

ID = 'STICKERSET_INVALID'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.PeerFlood(x: int = None, query_type: type = None)

The method can’t be used because your account is limited

ID = 'PEER_FLOOD'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.MediaCaptionTooLong(x: int = None, query_type: type = None)

The media caption is longer than 1024 characters

ID = 'MEDIA_CAPTION_TOO_LONG'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.UserNotMutualContact(x: int = None, query_type: type = None)

The user is not a mutual contact

ID = 'USER_NOT_MUTUAL_CONTACT'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.UserChannelsTooMuch(x: int = None, query_type: type = None)

The user is already in too many channels or supergroups

ID = 'USER_CHANNELS_TOO_MUCH'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.ApiIdPublishedFlood(x: int = None, query_type: type = None)

You are using an API key that is limited on the server side

ID = 'API_ID_PUBLISHED_FLOOD'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.UserNotParticipant(x: int = None, query_type: type = None)

The user is not a member of this chat

ID = 'USER_NOT_PARTICIPANT'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.ChannelPrivate(x: int = None, query_type: type = None)

The channel/supergroup is not accessible

ID = 'CHANNEL_PRIVATE'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.MessageIdsEmpty(x: int = None, query_type: type = None)

The requested message doesn’t exist

ID = 'MESSAGE_IDS_EMPTY'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.WebpageMediaEmpty(x: int = None, query_type: type = None)

The URL doesn’t contain any valid media

ID = 'WEBPAGE_MEDIA_EMPTY'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.QueryIdInvalid(x: int = None, query_type: type = None)

The callback query id is invalid

ID = 'QUERY_ID_INVALID'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.MediaEmpty(x: int = None, query_type: type = None)

The media is invalid

ID = 'MEDIA_EMPTY'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.UserIsBlocked(x: int = None, query_type: type = None)

The user blocked you

ID = 'USER_IS_BLOCKED'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.YouBlockedUser(x: int = None, query_type: type = None)

You blocked this user

ID = 'YOU_BLOCKED_USER'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.AdminsTooMuch(x: int = None, query_type: type = None)

The chat has too many administrators

ID = 'ADMINS_TOO_MUCH'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.BotsTooMuch(x: int = None, query_type: type = None)

The chat has too many bots

ID = 'BOTS_TOO_MUCH'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.UserAdminInvalid(x: int = None, query_type: type = None)

The action requires admin privileges

ID = 'USER_ADMIN_INVALID'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.InputUserDeactivated(x: int = None, query_type: type = None)

The target user has been deactivated

ID = 'INPUT_USER_DEACTIVATED'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.PasswordRecoveryNa(x: int = None, query_type: type = None)

The password recovery e-mail is not available

ID = 'PASSWORD_RECOVERY_NA'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.PasswordEmpty(x: int = None, query_type: type = None)

The password entered is empty

ID = 'PASSWORD_EMPTY'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.PhoneNumberFlood(x: int = None, query_type: type = None)

This number has tried to login too many times

ID = 'PHONE_NUMBER_FLOOD'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.TakeoutInvalid(x: int = None, query_type: type = None)

The takeout id is invalid

ID = 'TAKEOUT_INVALID'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.TakeoutRequired(x: int = None, query_type: type = None)

The method must be invoked inside a takeout session

ID = 'TAKEOUT_REQUIRED'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.MessagePollClosed(x: int = None, query_type: type = None)

You can’t interact with a closed poll

ID = 'MESSAGE_POLL_CLOSED'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.MediaInvalid(x: int = None, query_type: type = None)

The media is invalid

ID = 'MEDIA_INVALID'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.BotScoreNotModified(x: int = None, query_type: type = None)

The bot score was not modified

ID = 'BOT_SCORE_NOT_MODIFIED'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.UserBotRequired(x: int = None, query_type: type = None)

The method can be used by bots only

ID = 'USER_BOT_REQUIRED'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.ImageProcessFailed(x: int = None, query_type: type = None)

The server failed to process your image

ID = 'IMAGE_PROCESS_FAILED'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.UsernameNotModified(x: int = None, query_type: type = None)

The username was not modified

ID = 'USERNAME_NOT_MODIFIED'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.CallAlreadyAccepted(x: int = None, query_type: type = None)

The call is already accepted

ID = 'CALL_ALREADY_ACCEPTED'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.CallAlreadyDeclined(x: int = None, query_type: type = None)

The call is already declined

ID = 'CALL_ALREADY_DECLINED'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.PhotoExtInvalid(x: int = None, query_type: type = None)

The photo extension is invalid

ID = 'PHOTO_EXT_INVALID'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.ExternalUrlInvalid(x: int = None, query_type: type = None)

The external media URL is invalid

ID = 'EXTERNAL_URL_INVALID'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.ChatNotModified(x: int = None, query_type: type = None)

The chat settings were not modified

ID = 'CHAT_NOT_MODIFIED'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.ResultsTooMuch(x: int = None, query_type: type = None)

The result contains too many items

ID = 'RESULTS_TOO_MUCH'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.ResultIdDuplicate(x: int = None, query_type: type = None)

The result contains items with duplicated identifiers

ID = 'RESULT_ID_DUPLICATE'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.bad_request_400.AccessTokenInvalid(x: int = None, query_type: type = None)

The bot access token is invalid

ID = 'ACCESS_TOKEN_INVALID'

RPC Error ID

Type:str