Python 3.14 removed implicit fallback to class-level __annotations__,
causing AttributeError when accessing self.__annotations__. Updated
matches() to use self.__class__.__annotations__ for compatibility
across Python 3.10+.
Signed-off-by: wulan17 <wulan17@komodos.id>
* The problem with current implementation is when we have nested markdown inside a url the markdown order is messed up.
for example link with bold text will be unparsed like this [**github](https://github.com**).
Signed-off-by: wulan17 <wulan17@nusantararom.org>
* The problem with current implepementation is when we add another markdown inside an url markdown will not be parsed.
for example we add bold (**) markdown inside an url markdown, the url text show as `**text**` instead of making the text bold.
Signed-off-by: wulan17 <wulan17@nusantararom.org>
currently if you specify a plugin to exclude in pyrogram
the client first imports it (caea59cc17/pyrogram/client.py (L874))
and add_handler() (caea59cc17/pyrogram/client.py (L880))
and then after this it uses remove_handler() (caea59cc17/pyrogram/client.py (L948))
this usually works well in most case,
but in a few case if the module to exclude has an error,
this is not handled and stops the program,
so need to fix the modules even if it not the target of interest (as it is in exclude=[])
Co-authored-by: wulan17 <wulan17@nusantararom.org>
Signed-off-by: wulan17 <wulan17@nusantararom.org>
* Fix a bug
InputBotInlineMessageID's dc_id being the same with Client's dc_id.
---------
https://github.com/KurimuzonAkuma/pyrogram/pull/76
Co-authored-by: KurimuzonAkuma <31959970+KurimuzonAkuma@users.noreply.github.com>
Signed-off-by: wulan17 <wulan17@nusantararom.org>
* Add high level support for pre-checkout queries
* Add high level support for incoming payments
* Update and fix documentation
---------
Co-authored-by: KurimuzonAkuma <31959970+KurimuzonAkuma@users.noreply.github.com>
Signed-off-by: wulan17 <wulan17@nusantararom.org>
Add has_animation, is_personal, minithumbnail to ChatPhoto
Change return type of get_chat_photos
Inspiration from KurimuzonAkuma/pyrogram#60 but MVB_#1333
Signed-off-by: wulan17 <wulan17@nusantararom.org>
when only pass one or more but not all permission, all permission which previously turned off will be turned on
Signed-off-by: wulan17 <wulan17@nusantararom.org>
Signed-off-by: wulan17 <wulan17@nusantararom.org>
Co-authored-by: wulan17 <wulan17@nusantararom.org>
Pyrofork: Use session name as database name, add some parameters informations and some cleanup (#3)
Changes to be committed:
modified: pyrogram/client.py
modified: pyrogram/storage/mongo_storage.py
Signed-off-by: wulan17 <wulan17@nusantararom.org>
PyroFork: storage: mongo: Use existing database connection
support both async_pymongo and motor
Signed-off-by: wulan17 <wulan17@nusantararom.org>
PyroFork: Use Dummy client object to check wether connection object is valid or not
Signed-off-by: wulan17 <wulan17@nusantararom.org>
Multiple sessions as used in the current implementation were causing a
variety of network related issues. Use one session only instead. Multiple
workers within the same session are fine as long as they are not too many,
otherwise the server will start replying with -429 (too many requests).
Setting the queue size to 1 helps in having a more linear upload progress.
perf_counter will stop counting when the system goes to sleep, causing
the generation of invalid message ids after waking up which in turn put
the client into a never ending reconnecting loop due to check mismatches
caused by the time not being synced anymore. It's also unclear whether
perf_counter stays in sync during long runs.
description:Invalid, incomplete or inadequate issue reports may not be taken into consideration
options:
- label:I am sure the error is coming from Pyrogram's code and not elsewhere
- label:I am sure the error is coming from Pyrofork's code and not elsewhere
required:true
- label:I have searched in the issue tracker for similar bug reports, including closed ones
required:true
- label:I ran `pip3 install -U https://github.com/pyrogram/pyrogram/archive/master.zip` and reproduced the issue using the latest development version
- label:I ran `pip3 install -U git+https://github.com/Mayuri-Chan/pyrofork` and reproduced the issue using the latest development version
required:true
- type:textarea
@ -34,7 +35,7 @@ body:
- type:textarea
attributes:
label:Code example
description:Provide a [minimal, reproducible](https://stackoverflow.com/help/minimal-reproducible-example) and properly formatted example (if applicable)
description:Provide a [minimal, complete, consistently reproducible](https://stackoverflow.com/help/minimal-reproducible-example) and properly formatted example involving normal usages (if applicable)
# This workflow will upload a Python Package using Twine when a release is created
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
ABOUT_TOO_LONG The provided about/bio text is too long
ACCESS_TOKEN_EXPIRED The bot token has expired
ACCESS_TOKEN_INVALID The bot access token is invalid
ADDRESS_INVALID The specified geopoint address is invalid.
ADMINS_TOO_MUCH The chat has too many administrators
ADMIN_ID_INVALID The specified admin ID is invalid
ADMIN_RANK_EMOJI_NOT_ALLOWED Emoji are not allowed in custom administrator titles
ADMIN_RANK_INVALID The custom administrator title is invalid or too long
ADMIN_RIGHTS_EMPTY The chatAdminRights constructor passed in keyboardButtonRequestPeer.peer_type.user_admin_rights has no rights set (i.e. flags is 0).
ALBUM_PHOTOS_TOO_MANY Too many photos were included in the album
API_ID_INVALID The api_id/api_hash combination is invalid
API_ID_PUBLISHED_FLOOD You are using an API key that is limited on the server side because it was published somewhere
ARTICLE_TITLE_EMPTY The article title is empty
AUDIO_CONTENT_URL_EMPTY The remote URL specified in the content field is empty
AUDIO_TITLE_EMPTY The title attribute of the audio is empty
AUTH_BYTES_INVALID The authorization bytes are invalid
AUTH_TOKEN_ALREADY_ACCEPTED The authorization token was already used
AUTH_TOKEN_EXCEPTION An error occurred while importing the auth token
AUTH_TOKEN_EXPIRED The provided authorization token has expired and the updated QR-code must be re-scanned
AUTH_TOKEN_INVALID An invalid authorization token was provided
AUTH_TOKEN_INVALID2 An invalid authorization token was provided
AUTH_TOKEN_INVALIDX The specified auth token is invalid
AUTOARCHIVE_NOT_AVAILABLE This feature is not yet enabled for your account due to it not receiving too many private messages from strangers
BANK_CARD_NUMBER_INVALID The credit card number is invalid
BANNED_RIGHTS_INVALID You provided a set of restrictions that is invalid
BASE_PORT_LOC_INVALID The base port location is invalid
BIRTHDAY_INVALID The age should be less than 150 year old in Telegram
BOTS_TOO_MUCH The chat has too many bots
BOT_CHANNELS_NA Bots can't edit admin privileges
BOT_COMMAND_DESCRIPTION_INVALID The command description was empty, too long or had invalid characters
BOT_COMMAND_INVALID The specified command is invalid
BOT_DOMAIN_INVALID The domain used for the auth button does not match the one configured in @BotFather
BOT_GAMES_DISABLED Bot games cannot be used in this type of chat
BOT_GROUPS_BLOCKED This bot can't be added to groups
BOT_INLINE_DISABLED The inline feature of the bot is disabled
BOT_INVALID This is not a valid bot
BOT_INVOICE_INVALID The provided invoice is invalid
BOT_METHOD_INVALID The method can't be used by bots
BOT_MISSING This method can only be run by a bot
BOT_ONESIDE_NOT_AVAIL Bots can't pin messages for one side only in private chats
BOT_PAYMENTS_DISABLED This method can only be run by a bot
BOT_POLLS_DISABLED Sending polls by bots has been disabled
BOT_RESPONSE_TIMEOUT The bot did not answer to the callback query in time
BOT_SCORE_NOT_MODIFIED The bot score was not modified
BROADCAST_CALLS_DISABLED Broadcast calls disabled
BROADCAST_ID_INVALID The channel is invalid
BROADCAST_PUBLIC_VOTERS_FORBIDDEN Polls with public voters cannot be sent in channels
BROADCAST_REQUIRED The request can only be used with a channel
BUSINESS_BOT_MISSING Business bot missing
BUTTON_DATA_INVALID The button callback data is invalid or too large
BUTTON_ID_INVALID The button_id parameter is invalid
BUTTON_TEXT_INVALID The specified button text is invalid
BUTTON_TYPE_INVALID The type of one of the buttons you provided is invalid
BUTTON_URL_INVALID The button url is invalid
BUTTON_USER_PRIVACY_RESTRICTED The privacy settings of the user specified in a keyboard button do not allow creating such button
CALL_ALREADY_ACCEPTED The call is already accepted
CALL_ALREADY_DECLINED The call is already declined
CALL_PEER_INVALID The provided call peer object is invalid
CDN_METHOD_INVALID The method can't be used on CDN DCs
CHANNELS_ADMIN_LOCATED_TOO_MUCH The user has reached the limit of public geogroups
CHANNELS_ADMIN_PUBLIC_TOO_MUCH You are an administrator of too many public channels
CHANNELS_TOO_MUCH You have joined too many channels or supergroups, leave some and try again
CHANNEL_ADD_INVALID Internal error.
CHANNEL_BANNED The channel is banned
CHANNEL_ID_INVALID The specified supergroup ID is invalid.
CHANNEL_INVALID The channel parameter is invalid
CHANNEL_PARICIPANT_MISSING The current user is not in the channel
CHANNEL_PRIVATE The channel/supergroup is not accessible
CHANNEL_TOO_LARGE The channel is too large
CHANNEL_TOO_BIG The channel too big
CHANNEL_TOO_LARGE "Channel is too large to be deleted; this error is issued when trying to delete channels with more than 1000 members (subject to change)."
CHARGE_ALREADY_REFUNDED The charge id was already used for a refund.
CHARGE_NOT_FOUND The charge id was not found.
CHATLIST_EXCLUDE_INVALID The specified `exclude_peers` are invalid.
CHAT_ABOUT_NOT_MODIFIED The chat about text was not modified because you tried to edit it using the same content
CHAT_ABOUT_TOO_LONG The chat about text is too long
CHAT_ADMIN_REQUIRED The method requires chat admin privileges
CHAT_DISCUSSION_UNALLOWED The chat discussion is not allowed
CHAT_FORWARDS_RESTRICTED The chat restricts forwarding content
CHAT_ID_EMPTY The provided chat id is empty
CHAT_ID_INVALID The chat id being used is invalid or not known yet. Make sure you see the chat before interacting with it
@ -61,12 +85,14 @@ CHAT_INVITE_PERMANENT The chat invite link is primary
CHAT_LINK_EXISTS The action failed because the supergroup is linked to a channel
CHAT_NOT_MODIFIED The chat settings (title, permissions, photo, etc..) were not modified because you tried to edit them using the same content
CHAT_RESTRICTED The chat is restricted and cannot be used
CHAT_REVOKE_DATE_UNSUPPORTED `min_date` and `max_date` are not available for using with non-user peers
CHAT_SEND_INLINE_FORBIDDEN You cannot use inline bots to send messages in this chat
CHAT_TITLE_EMPTY The chat title is empty
CHAT_TOO_BIG The chat is too big for this action
CODE_EMPTY The provided code is empty
CODE_HASH_INVALID The provided code hash invalid
CODE_INVALID The provided code is invalid (i.e. from email)
COLOR_INVALID The provided color is invalid
CONNECTION_API_ID_INVALID The provided API id is invalid
CONNECTION_APP_VERSION_EMPTY App version is empty
CONNECTION_DEVICE_MODEL_EMPTY The device model is empty
@ -77,8 +103,11 @@ CONNECTION_SYSTEM_EMPTY The connection to the system is empty
CONNECTION_SYSTEM_LANG_CODE_EMPTY The system language code is empty
CONTACT_ADD_MISSING Contact to add is missing
CONTACT_ID_INVALID The provided contact id is invalid
CONTACT_MISSING The specified user is not a contact.
CONTACT_NAME_EMPTY The provided contact name is empty
CONTACT_REQ_MISSING Missing contact request
CREATE_CALL_FAILED An error occurred while creating the call
CURRENCY_TOTAL_AMOUNT_INVALID The total amount of all prices is invalid
DATA_INVALID The encrypted data is invalid
DATA_JSON_INVALID The provided JSON data is invalid
DATA_TOO_LONG Data too long
@ -88,9 +117,14 @@ DH_G_A_INVALID The g_a parameter invalid
DOCUMENT_INVALID The document is invalid
EMAIL_HASH_EXPIRED The email hash expired and cannot be used to verify it
EMAIL_INVALID The email provided is invalid
EMAIL_NOT_ALLOWED This email is not allowed
EMAIL_NOT_SETUP In order to change the login email with emailVerifyPurposeLoginChange, an existing login email must already be set using emailVerifyPurposeLoginSetup.
EMAIL_UNCONFIRMED Email unconfirmed
EMAIL_UNCONFIRMED_X The provided email isn't confirmed, {value} is the length of the verification code that was just sent to the email
EMAIL_VERIFY_EXPIRED The verification email has expired
EMOJI_INVALID The specified theme emoji is valid
EMOJI_MARKUP_INVALID The specified `video_emoji_markup` was invalid.
EMOJI_NOT_MODIFIED The theme wasn't changed
EMOTICON_EMPTY The emoticon parameter is empty
EMOTICON_INVALID The emoticon parameter is invalid
EMOTICON_STICKERPACK_MISSING The emoticon sticker pack you are trying to obtain is missing
@ -100,16 +134,24 @@ ENCRYPTION_ALREADY_DECLINED The secret chat is already declined
ENCRYPTION_DECLINED The secret chat was declined
ENCRYPTION_ID_INVALID The provided secret chat id is invalid
ENTITIES_TOO_LONG The entity provided contains data that is too long, or you passed too many entities to this message
ENTITY_BOUNDS_INVALID The message entity bounds are invalid
ENTITY_MENTION_USER_INVALID The mentioned entity is not an user
ERROR_TEXT_EMPTY The provided error message is empty
EXPIRE_DATE_INVALID The expiration date is invalid
EXPIRE_FORBIDDEN Expire forbidden
EXPORT_CARD_INVALID The provided card is invalid
EXTENDED_MEDIA_AMOUNT_INVALID The maximum amount of `star_count` should be less than the `stars_paid_post_amount_max`
EXTENDED_MEDIA_PEER_INVALID The specified chat type is invalid.
EXTENDED_MEDIA_TYPE_INVALID The specified extended media type is unsupported.
EXTERNAL_URL_INVALID The external media URL is invalid
FIELD_NAME_EMPTY The field with the name FIELD_NAME is missing
FIELD_NAME_INVALID The field with the name FIELD_NAME is invalid
FILE_CONTENT_TYPE_INVALID File content-type is invalid
FILE_EMTPY An empty file was provided
FILE_ID_INVALID The file id is invalid
FILE_MIGRATE_X The file is in Data Center No. {value}
FILE_PARTS_INVALID Invalid number of parts.
FILE_PART_0_MISSING File part 0 missing
FILE_PART_EMPTY The file part sent is empty
FILE_PART_INVALID The file part number is invalid.
FILE_PART_LENGTH_INVALID The length of a file part is invalid
@ -120,23 +162,38 @@ FILE_PART_X_MISSING Part {value} of the file is missing from storage
FILE_REFERENCE_EMPTY The file id contains an empty file reference, you must obtain a valid one by fetching the message from the origin context
FILE_REFERENCE_EXPIRED The file id contains an expired file reference, you must obtain a valid one by fetching the message from the origin context
FILE_REFERENCE_INVALID The file id contains an invalid file reference, you must obtain a valid one by fetching the message from the origin context
FILE_TITLE_EMPTY An empty file title was specified
FILTER_ID_INVALID The specified filter ID is invalid
FILTER_INCLUDE_EMPTY The filter include is empty
FILTER_NOT_SUPPORTED The specified filter cannot be used in this context
FILTER_TITLE_EMPTY The title field of the filter is empty
FIRSTNAME_INVALID The first name is invalid
FOLDER_ID_EMPTY The folder you tried to delete was already empty
FOLDER_ID_INVALID The folder id is invalid
FORM_ID_EXPIRED The specified id has expired.
FORUM_ENABLED You can't execute the specified action because the group is a [forum](https://core.telegram.org/api/forum), disable forum functionality to continue.
FRESH_CHANGE_ADMINS_FORBIDDEN You can't change administrator settings in this chat because your session was logged-in recently
FROM_MESSAGE_BOT_DISABLED Bots can't use fromMessage min constructors
FROM_PEER_INVALID The from peer value is invalid
GAME_BOT_INVALID You cannot send that game with the current bot
GENERAL_MODIFY_ICON_FORBIDDEN You can't modify the icon of the General topic.
GEO_POINT_INVALID Invalid geo point provided
GIF_CONTENT_TYPE_INVALID GIF content-type invalid
GIF_ID_INVALID The provided gif/animation id is invalid
GIFT_SLUG_INVALID The specified slug is invalid.
GIFT_SLUG_EXPIRED The gift slug is expired
GRAPH_EXPIRED_RELOAD This graph has expired, please obtain a new graph token
GRAPH_INVALID_RELOAD Invalid graph token provided, please reload the stats and provide the updated token
GRAPH_OUTDATED_RELOAD The graph data is outdated
GROUPCALL_ALREADY_DISCARDED The group call was already discarded
GROUPCALL_INVALID The specified group call is invalid
GROUPCALL_JOIN_MISSING You haven't joined this group call
GROUPCALL_NOT_MODIFIED Group call settings weren't modified
GROUPCALL_SSRC_DUPLICATE_MUCH Too many group call synchronization source duplicates
GROUPED_MEDIA_INVALID The album contains invalid media
GROUP_CALL_INVALID The group call is invalid
HASH_INVALID The provided hash is invalid
HIDE_REQUESTER_MISSING The join request was missing or was already handled
IMAGE_PROCESS_FAILED The server failed to process your image
IMPORT_FILE_INVALID The imported file is invalid
IMPORT_FORMAT_UNRECOGNIZED The imported format is unrecognized
@ -149,24 +206,40 @@ INPUT_FILTER_INVALID The filter is invalid for this query
INPUT_LAYER_INVALID The provided layer is invalid
INPUT_METHOD_INVALID The method invoked is invalid in the current schema
INPUT_REQUEST_TOO_LONG The input request is too long
INPUT_TEXT_EMPTY The specified text is empty
INPUT_TEXT_TOO_LONG The specified text is too long.
INPUT_USER_DEACTIVATED The target user has been deleted/deactivated
INVITES_TOO_MUCH The maximum number of per-folder invites specified by the `chatlist_invites_limit_default`/`chatlist_invites_limit_premium` was reached.
INVITE_FORBIDDEN_WITH_JOINAS If the user has anonymously joined a group call as a channel, they can't invite other users to the group call because that would cause deanonymization, because the invite would be sent using the original user ID, not the anonymized channel ID
INVITE_HASH_EMPTY The invite hash is empty
INVITE_HASH_EXPIRED The chat invite link is no longer valid
INVITE_HASH_INVALID The invite link hash is invalid
INVITE_REQUEST_SENT The request to join this chat or channel has been successfully sent
INVITE_REVOKED_MISSING The action required a chat invite link to be revoked first
INVITE_SLUG_EMPTY The invite slug is empty
INVITE_SLUG_EXPIRED The invite slug is expired
INVOICE_PAYLOAD_INVALID The specified invoice payload is invalid
JOIN_AS_PEER_INVALID The specified peer cannot be used to join a group call
LANG_CODE_INVALID The specified language code is invalid
LANG_CODE_NOT_SUPPORTED The specified language code is not supported
LANG_PACK_INVALID The provided language pack is invalid
LASTNAME_INVALID The last name is invalid
LIMIT_INVALID The limit parameter is invalid
LINK_NOT_MODIFIED The chat link was not modified because you tried to link to the same target
LOCATION_INVALID The file location is invalid
MAX_DATE_INVALID The specified maximum date is invalid
MAX_ID_INVALID The max_id parameter is invalid
MAX_QTS_INVALID The provided QTS is invalid
MD5_CHECKSUM_INVALID The file's checksum did not match the md5_checksum parameter
MEDIA_CAPTION_TOO_LONG The media caption is too long
MEDIA_EMPTY The media you tried to send is invalid
MEDIA_FILE_INVALID The provided media file is invalid
MEDIA_GROUPED_INVALID You tried to send media of different types in an album
MEDIA_INVALID The media is invalid
MEDIA_NEW_INVALID The new media to edit the message with is invalid
MEDIA_PREV_INVALID The previous media cannot be edited with anything else
MEDIA_TTL_INVALID The media ttl is invalid
MEDIA_VIDEO_STORY_MISSING The media does not have a photo or a video
MEGAGROUP_ID_INVALID The supergroup is invalid
MEGAGROUP_PREHISTORY_HIDDEN The action failed because the supergroup has the pre-history hidden
MEGAGROUP_REQUIRED The request can only be used with a supergroup
@ -178,11 +251,16 @@ MESSAGE_NOT_MODIFIED The message was not modified because you tried to edit it u
MESSAGE_POLL_CLOSED You can't interact with a closed poll
MESSAGE_TOO_LONG The message text is too long
METHOD_INVALID The API method is invalid and cannot be used
MIN_DATE_INVALID The specified minimum date is invalid
MSG_ID_INVALID The message ID used in the peer was invalid
MSG_TOO_OLD chat_read_mark_expire_period have passed since the message was sent, read receipts were deleted
MSG_VOICE_MISSING The message does not contain a voice message
MSG_WAIT_FAILED A waiting call returned an error
MULTI_MEDIA_TOO_LONG The album/media group contains too many items
NEW_SALT_INVALID The new salt is invalid
NEW_SETTINGS_EMPTY No password is set on the current account, and no new password was specified in `new_settings`
NEW_SETTINGS_INVALID The new settings are invalid
NOGENERAL_HIDE_FORBIDDEN The hidden parameter is only valid for the General topic message_thread_id=1
NEXT_OFFSET_INVALID The next offset value is invalid
OFFSET_INVALID The offset parameter is invalid
OFFSET_PEER_ID_INVALID The provided offset peer is invalid
@ -192,6 +270,8 @@ PACK_SHORT_NAME_INVALID Invalid sticker pack name. It must begin with a letter,
PACK_SHORT_NAME_OCCUPIED A sticker pack with this name already exists
PACK_TITLE_INVALID The sticker pack title is invalid
PARTICIPANTS_TOO_FEW The chat doesn't have enough participants
PARTICIPANT_ID_INVALID The specified participant ID is invalid
PARTICIPANT_JOIN_MISSING Trying to enable a presentation, when the user hasn't joined the Video Chat with phone.joinGroupCall
PARTICIPANT_VERSION_OUTDATED The other participant is using an outdated Telegram app version
PASSWORD_EMPTY The password provided is empty
PASSWORD_HASH_INVALID The two-step verification password is invalid
@ -201,6 +281,7 @@ PASSWORD_REQUIRED The two-step verification password is required for this method
PASSWORD_TOO_FRESH_X The two-step verification password was added recently and you are required to wait {value} seconds
PAYMENT_PROVIDER_INVALID The payment provider was not recognised or its token was invalid
PEER_FLOOD The method can't be used because your account is currently limited
PEER_HISTORY_EMPTY Peer history empty
PEER_ID_INVALID The peer id being used is invalid or not known yet. Make sure you meet the peer before interacting with it
PEER_ID_NOT_SUPPORTED The provided peer id is not supported
PERSISTENT_TIMESTAMP_EMPTY The pts argument is empty
@ -209,6 +290,8 @@ PHONE_CODE_EMPTY The phone code is missing
PHONE_CODE_EXPIRED The confirmation code has expired
PHONE_CODE_HASH_EMPTY The phone code hash is missing
PHONE_CODE_INVALID The confirmation code is invalid
PHONE_HASH_EXPIRED An invalid or expired phone_code_hash was provided
PHONE_NOT_OCCUPIED No user is associated to the specified phone number
PHONE_NUMBER_APP_SIGNUP_FORBIDDEN You can't sign up using this app
PHONE_NUMBER_BANNED The phone number is banned from Telegram and cannot be used
PHONE_NUMBER_FLOOD This number has tried to login too many times
@ -229,19 +312,26 @@ PHOTO_SAVE_FILE_INVALID The photo you tried to send cannot be saved by Telegram
PHOTO_THUMB_URL_EMPTY The photo thumb URL is empty
PHOTO_THUMB_URL_INVALID The photo thumb URL is invalid
PINNED_DIALOGS_TOO_MUCH Too many pinned dialogs
PINNED_TOPIC_NOT_MODIFIED The pinned topic was not modified.
PIN_RESTRICTED You can't pin messages in private chats with other people
POLL_ANSWERS_INVALID The poll answers are invalid
POLL_ANSWER_INVALID One of the poll answers is not acceptable
POLL_OPTION_DUPLICATE A duplicate option was sent in the same poll
POLL_OPTION_INVALID A poll option used invalid data (the data may be too long)
POLL_QUESTION_INVALID The poll question is invalid
POLL_UNSUPPORTED This layer does not support polls in the invoked method
POLL_VOTE_REQUIRED Cast a vote in the poll before calling this method
PREMIUM_ACCOUNT_REQUIRED The method requires a premium user account
PREMIUM_GIFTCODE_WAS_REFUNDED This gift code can't be redeemed because the giveaway organizer requested a refund
PRICING_CHAT_INVALID This chat chat doesn't support subscription link.
PRIVACY_KEY_INVALID The privacy key is invalid
PRIVACY_TOO_LONG Your privacy exception list has exceeded the maximum capacity
PRIVACY_VALUE_INVALID The privacy value is invalid
PUBLIC_KEY_REQUIRED A public key is required
QUERY_ID_EMPTY The query ID is empty
QUERY_ID_INVALID The callback query id is invalid
QUERY_TOO_SHORT The query is too short
QUIZ_ANSWER_MISSING You can forward a quiz while hiding the original author only after choosing an option in the quiz
QUIZ_CORRECT_ANSWERS_EMPTY The correct answers of the quiz are empty
QUIZ_CORRECT_ANSWERS_TOO_MUCH The quiz contains too many correct answers
QUIZ_CORRECT_ANSWER_INVALID The correct answers of the quiz are invalid
REPLY_MARKUP_GAME_EMPTY The provided reply markup for the game is empty
REPLY_MARKUP_INVALID The provided reply markup is invalid
REPLY_MARKUP_TOO_LONG The reply markup is too long
REPLY_MESSAGE_ID_INVALID The reply message id is invalid
RESET_REQUEST_MISSING No password reset is in progress
RESULTS_TOO_MUCH The result contains too many items
RESULT_ID_DUPLICATE The result contains items with duplicated identifiers
RESULT_ID_EMPTY Result ID empty
RESULT_ID_INVALID The given result cannot be used to send the selection to the bot
REACTIONS_TOO_MANY Currently, non-premium users, can set up to one reaction per message
RESULT_TYPE_INVALID The result type is invalid
REVOTE_NOT_ALLOWED You cannot change your vote
RIGHTS_NOT_MODIFIED The new admin rights are equal to the old rights, no change was made
RSA_DECRYPT_FAILED Internal RSA decryption failed
SCHEDULE_BOT_NOT_ALLOWED Bots are not allowed to schedule messages
SCHEDULE_DATE_INVALID Invalid schedule date provided
SCHEDULE_DATE_TOO_LATE The date you tried to schedule is too far in the future (more than one year)
SCHEDULE_STATUS_PRIVATE You cannot schedule a message until the person comes online if their privacy does not show this information
SCHEDULE_TOO_MUCH You tried to schedule too many messages in this chat
SCORE_INVALID The specified game score is invalid
SEARCH_QUERY_EMPTY The search query is empty
SEARCH_WITH_LINK_NOT_SUPPORTED You cannot provide a search query and an invite link at the same time
SECONDS_INVALID The seconds interval is invalid
SEND_AS_PEER_INVALID You can't send messages as the specified peer
SEND_MESSAGE_MEDIA_INVALID The message media is invalid
SEND_MESSAGE_TYPE_INVALID The message type is invalid
SESSION_TOO_FRESH_X You can't do this action because the current session was logged-in recently
SETTINGS_INVALID Invalid settings were provided
SHA256_HASH_INVALID The provided SHA256 hash is invalid
SHORTNAME_OCCUPY_FAILED An error occurred when trying to register the short-name used for the sticker pack. Try a different name
SHORT_NAME_INVALID The specified short name is invalid
SHORT_NAME_OCCUPIED The specified short name is already in use
SLOWMODE_MULTI_MSGS_DISABLED Slowmode is enabled, you cannot forward multiple messages to this group
SMS_CODE_CREATE_FAILED An error occurred while creating the SMS code
SRP_ID_INVALID Invalid SRP ID provided
SRP_PASSWORD_CHANGED The password has changed
STARGIFT_ALREADY_CONVERTED The provided star gift already converted to stars
STARGIFT_ALREADY_UPGRADED This star gift was already upgraded before
STARGIFT_USAGE_LIMITED The star gift usage is limited
START_PARAM_EMPTY The start parameter is empty
START_PARAM_INVALID The start parameter is invalid
START_PARAM_TOO_LONG The start parameter is too long
STICKERPACK_STICKERS_TOO_MUCH There are too many stickers in this stickerpack, you can't add any more
STICKERSET_INVALID The requested sticker set is invalid
STICKERSET_NOT_MODIFIED The sticker set is not modified
STICKERS_EMPTY The sticker provided is empty
@ -291,27 +394,55 @@ STICKERS_TOO_MUCH Too many stickers in the set
STICKER_DOCUMENT_INVALID The sticker document is invalid
STICKER_EMOJI_INVALID The sticker emoji is invalid
STICKER_FILE_INVALID The sticker file is invalid
STICKER_GIF_DIMENSIONS The specified video sticker has invalid dimensions
STICKER_ID_INVALID The provided sticker id is invalid
STICKER_INVALID The provided sticker is invalid
STICKER_MIME_INVALID Make sure to pass a valid image file for the right InputFile parameter
STICKER_PNG_DIMENSIONS The sticker png dimensions are invalid
STICKER_PNG_NOPNG Stickers must be png files but the provided image was not a png
STICKER_TGS_NODOC You must send the animated sticker as a document
STICKER_TGS_NOTGS A tgs sticker file was expected, but something else was provided
STICKER_VIDEO_NOWEBM A webm video file was expected, but something else was provided
STICKER_THUMB_PNG_NOPNG A png sticker thumbnail file was expected, but something else was provided
STICKER_VIDEO_BIG The specified video sticker is too big
STICKER_VIDEO_NODOC You must send the video sticker as a document
STICKER_VIDEO_NOWEBM A webm video file was expected, but something else was provided
STORY_ID_EMPTY You specified no story IDs.
STORY_ID_INVALID The specified story ID is invalid.
STORY_NOT_MODIFIED The new story information you passed is equal to the previous story information, thus it wasn't modified.
STORY_PERIOD_INVALID The specified story period is invalid for this account.
STORIES_TOO_MUCH Too many stories in the current account
STORY_SEND_FLOOD_WEEKLY_X You've hit the weekly story limit, wait for the specified number of seconds before posting a new story.
STORY_SEND_FLOOD_MONTHLY_X You've hit the monthly story limit, wait for the specified number of seconds before posting a new story.
STORY_PERIOD_INVALID The story period is invalid
SUBSCRIPTION_PERIOD_INVALID The subscription period is invalid.
SWITCH_PM_TEXT_EMPTY The switch_pm.text field was empty
TAKEOUT_INVALID The takeout id is invalid
TAKEOUT_REQUIRED The method must be invoked inside a takeout session
TEMP_AUTH_KEY_ALREADY_BOUND The passed temporary key is already bound to another perm_auth_key_id
TEMP_AUTH_KEY_EMPTY The temporary auth key provided is empty
THEME_FILE_INVALID Invalid theme file provided
THEME_FORMAT_INVALID Invalid theme format provided
THEME_INVALID Invalid theme provided
THEME_MIME_INVALID You cannot create this theme because the mime-type is invalid
THEME_TITLE_INVALID The specified theme title is invalid
TITLE_INVALID The specified stickerpack title is invalid
TMP_PASSWORD_DISABLED The temporary password is disabled
TMP_PASSWORD_INVALID The temporary password is invalid
TOKEN_INVALID The provided token is invalid
TOPIC_CLOSED The topic was closed
TOPIC_DELETED The topic was deleted
TOPIC_CLOSE_SEPARATELY The close flag cannot be provided together with any of the other flags.
TOPIC_HIDE_SEPARATELY The hide flag cannot be provided together with any of the other flags.
TOPIC_ID_INVALID The provided topic ID is invalid
TOPIC_NOT_MODIFIED The topic was not modified
TOPIC_TITLE_EMPTY The specified topic title is empty.
TO_LANG_INVALID The specified destination language is invalid
TRANSCRIPTION_FAILED Telegram is having internal problems. Please try again later to transcribe the audio.
TTL_DAYS_INVALID The provided TTL days is invalid
TTL_MEDIA_INVALID The media does not support self-destruction
TYPES_EMPTY The types parameter is empty
TYPE_CONSTRUCTOR_INVALID The type constructor is invalid
UNKNOWN_ERROR Unknown error
UNTIL_DATE_INVALID That date parameter is invalid
URL_INVALID The URL provided is invalid
USAGE_LIMIT_INVALID The usage limit is invalid
@ -319,10 +450,12 @@ USERNAME_INVALID The username is invalid
USERNAME_NOT_MODIFIED The username was not modified because you tried to edit it using the same one
USERNAME_NOT_OCCUPIED The username is not occupied by anyone
USERNAME_OCCUPIED The username is already in use by someone else
USERNAME_PURCHASE_AVAILABLE The username is available for purchase on fragment.com
USERPIC_UPLOAD_REQUIRED You are required to upload a profile picture for this action
USERS_TOO_FEW Not enough users (to create a chat, for example)
USERS_TOO_MUCH The maximum number of users has been exceeded (to create a chat, for example)
USER_ADMIN_INVALID The action requires admin privileges. Probably you tried to edit admin privileges on someone you don't have rights to
USER_ALREADY_INVITED You have already invited this user
USER_ALREADY_PARTICIPANT The user is already a participant of this chat
USER_BANNED_IN_CHANNEL You are limited from sending messages in supergroups/channels, check @SpamBot for details
USER_BLOCKED The user is blocked
@ -338,12 +471,17 @@ USER_IS_BOT A bot cannot send messages to other bots or to itself
USER_KICKED This user was kicked from this chat
USER_NOT_MUTUAL_CONTACT The user is not a mutual contact
USER_NOT_PARTICIPANT The user is not a member of this chat
USER_PUBLIC_MISSING The accounts username is missing
USER_VOLUME_INVALID The specified user volume is invalid
VIDEO_CONTENT_TYPE_INVALID The video content type is invalid (i.e.: not streamable)
VIDEO_FILE_INVALID The video file is invalid
VIDEO_TITLE_EMPTY The specified video title is empty
VOICE_MESSAGES_FORBIDDEN This user's privacy settings forbid you from sending voice messages
VOLUME_LOC_NOT_FOUND The volume location can't be found
WALLPAPER_FILE_INVALID The provided file cannot be used as a wallpaper
WALLPAPER_INVALID The input wallpaper was not valid
WALLPAPER_MIME_INVALID The wallpaper mime type is invalid
WALLPAPER_NOT_FOUND The specified wallpaper could not be found.
WC_CONVERT_URL_INVALID WC convert URL invalid
WEBDOCUMENT_INVALID The web document is invalid
WEBDOCUMENT_MIME_INVALID The web document mime type is invalid
@ -352,5 +490,19 @@ WEBDOCUMENT_URL_EMPTY The web document URL is empty
WEBDOCUMENT_URL_INVALID The web document URL is invalid
WEBPAGE_CURL_FAILED Telegram server could not fetch the provided URL
WEBPAGE_MEDIA_EMPTY The URL doesn't contain any valid media
WEBPAGE_NOT_FOUND Webpage not found
WEBPAGE_URL_INVALID Webpage url invalid
WEBPUSH_AUTH_INVALID The specified web push authentication secret is invalid
WEBPUSH_KEY_INVALID The specified web push elliptic curve Diffie-Hellman public key is invalid
WEBPUSH_TOKEN_INVALID The specified web push token is invalid
YOU_BLOCKED_USER You blocked this user
ENTITY_BOUNDS_INVALID The message entity bounds are invalid
STORIES_NEVER_CREATED You have never created any stories
MEDIA_FILE_INVALID The provided media file is invalid
CHANNEL_FORUM_MISSING The channel forum is missing
TTL_PERIOD_INVALID The provided TTL period is invalid
BOOSTS_REQUIRED The specified channel must first be boosted by its users in order to perform this action
BOOSTS_EMPTY You can't modify the icon of the General topic.
BOOST_NOT_MODIFIED You're already boosting the specified channel.
PAYMENT_REQUIRED The payment is required
BOOST_PEER_INVALID The specified `boost_peer` is invalid.
STARS_AMOUNT_INVALID The specified `amount` is invalid.
1
id
message
2
ABOUT_TOO_LONG
The provided about/bio text is too long
3
ACCESS_TOKEN_EXPIRED
The bot token has expired
4
ACCESS_TOKEN_INVALID
The bot access token is invalid
5
ADDRESS_INVALID
The specified geopoint address is invalid.
6
ADMINS_TOO_MUCH
The chat has too many administrators
7
ADMIN_ID_INVALID
The specified admin ID is invalid
8
ADMIN_RANK_EMOJI_NOT_ALLOWED
Emoji are not allowed in custom administrator titles
9
ADMIN_RANK_INVALID
The custom administrator title is invalid or too long
10
ADMIN_RIGHTS_EMPTY
The chatAdminRights constructor passed in keyboardButtonRequestPeer.peer_type.user_admin_rights has no rights set (i.e. flags is 0).
11
ALBUM_PHOTOS_TOO_MANY
Too many photos were included in the album
12
API_ID_INVALID
The api_id/api_hash combination is invalid
13
API_ID_PUBLISHED_FLOOD
You are using an API key that is limited on the server side because it was published somewhere
14
ARTICLE_TITLE_EMPTY
The article title is empty
15
AUDIO_CONTENT_URL_EMPTY
The remote URL specified in the content field is empty
16
AUDIO_TITLE_EMPTY
The title attribute of the audio is empty
17
AUTH_BYTES_INVALID
The authorization bytes are invalid
18
AUTH_TOKEN_ALREADY_ACCEPTED
The authorization token was already used
19
AUTH_TOKEN_EXCEPTION
An error occurred while importing the auth token
20
AUTH_TOKEN_EXPIRED
The provided authorization token has expired and the updated QR-code must be re-scanned
21
AUTH_TOKEN_INVALID
An invalid authorization token was provided
22
AUTH_TOKEN_INVALID2
An invalid authorization token was provided
23
AUTH_TOKEN_INVALIDX
The specified auth token is invalid
24
AUTOARCHIVE_NOT_AVAILABLE
This feature is not yet enabled for your account due to it not receiving too many private messages from strangers
25
BANK_CARD_NUMBER_INVALID
The credit card number is invalid
26
BANNED_RIGHTS_INVALID
You provided a set of restrictions that is invalid
27
BASE_PORT_LOC_INVALID
The base port location is invalid
28
BIRTHDAY_INVALID
The age should be less than 150 year old in Telegram
29
BOTS_TOO_MUCH
The chat has too many bots
30
BOT_CHANNELS_NA
Bots can't edit admin privileges
31
BOT_COMMAND_DESCRIPTION_INVALID
The command description was empty, too long or had invalid characters
32
BOT_COMMAND_INVALID
The specified command is invalid
33
BOT_DOMAIN_INVALID
The domain used for the auth button does not match the one configured in @BotFather
34
BOT_GAMES_DISABLED
Bot games cannot be used in this type of chat
35
BOT_GROUPS_BLOCKED
This bot can't be added to groups
36
BOT_INLINE_DISABLED
The inline feature of the bot is disabled
37
BOT_INVALID
This is not a valid bot
38
BOT_INVOICE_INVALID
The provided invoice is invalid
39
BOT_METHOD_INVALID
The method can't be used by bots
40
BOT_MISSING
This method can only be run by a bot
41
BOT_ONESIDE_NOT_AVAIL
Bots can't pin messages for one side only in private chats
42
BOT_PAYMENTS_DISABLED
This method can only be run by a bot
43
BOT_POLLS_DISABLED
Sending polls by bots has been disabled
44
BOT_RESPONSE_TIMEOUT
The bot did not answer to the callback query in time
45
BOT_SCORE_NOT_MODIFIED
The bot score was not modified
46
BROADCAST_CALLS_DISABLED
Broadcast calls disabled
47
BROADCAST_ID_INVALID
The channel is invalid
48
BROADCAST_PUBLIC_VOTERS_FORBIDDEN
Polls with public voters cannot be sent in channels
49
BROADCAST_REQUIRED
The request can only be used with a channel
50
BUSINESS_BOT_MISSING
Business bot missing
51
BUTTON_DATA_INVALID
The button callback data is invalid or too large
52
BUTTON_ID_INVALID
The button_id parameter is invalid
53
BUTTON_TEXT_INVALID
The specified button text is invalid
54
BUTTON_TYPE_INVALID
The type of one of the buttons you provided is invalid
55
BUTTON_URL_INVALID
The button url is invalid
56
BUTTON_USER_PRIVACY_RESTRICTED
The privacy settings of the user specified in a keyboard button do not allow creating such button
57
CALL_ALREADY_ACCEPTED
The call is already accepted
58
CALL_ALREADY_DECLINED
The call is already declined
59
CALL_PEER_INVALID
The provided call peer object is invalid
60
CALL_PROTOCOL_FLAGS_INVALID
Call protocol flags invalid
61
CDN_METHOD_INVALID
The method can't be used on CDN DCs
62
CHANNELS_ADMIN_LOCATED_TOO_MUCH
The user has reached the limit of public geogroups
63
CHANNELS_ADMIN_PUBLIC_TOO_MUCH
You are an administrator of too many public channels
64
CHANNELS_TOO_MUCH
You have joined too many channels or supergroups, leave some and try again
65
CHANNEL_ADD_INVALID
Internal error.
66
CHANNEL_BANNED
The channel is banned
67
CHANNEL_ID_INVALID
The specified supergroup ID is invalid.
68
CHANNEL_INVALID
The channel parameter is invalid
69
CHANNEL_PARICIPANT_MISSING
The current user is not in the channel
70
CHANNEL_PRIVATE
The channel/supergroup is not accessible
71
CHANNEL_TOO_LARGECHANNEL_TOO_BIG
The channel is too largeThe channel too big
72
CHANNEL_TOO_LARGE
Channel is too large to be deleted; this error is issued when trying to delete channels with more than 1000 members (subject to change).
73
CHARGE_ALREADY_REFUNDED
The charge id was already used for a refund.
74
CHARGE_NOT_FOUND
The charge id was not found.
75
CHATLIST_EXCLUDE_INVALID
The specified `exclude_peers` are invalid.
76
CHAT_ABOUT_NOT_MODIFIED
The chat about text was not modified because you tried to edit it using the same content
77
CHAT_ABOUT_TOO_LONG
The chat about text is too long
78
CHAT_ADMIN_REQUIRED
The method requires chat admin privileges
79
CHAT_DISCUSSION_UNALLOWED
The chat discussion is not allowed
80
CHAT_FORWARDS_RESTRICTED
The chat restricts forwarding content
81
CHAT_ID_EMPTY
The provided chat id is empty
82
CHAT_ID_INVALID
The chat id being used is invalid or not known yet. Make sure you see the chat before interacting with it
85
CHAT_LINK_EXISTS
The action failed because the supergroup is linked to a channel
86
CHAT_NOT_MODIFIED
The chat settings (title, permissions, photo, etc..) were not modified because you tried to edit them using the same content
87
CHAT_RESTRICTED
The chat is restricted and cannot be used
88
CHAT_REVOKE_DATE_UNSUPPORTED
`min_date` and `max_date` are not available for using with non-user peers
89
CHAT_SEND_INLINE_FORBIDDEN
You cannot use inline bots to send messages in this chat
90
CHAT_TITLE_EMPTY
The chat title is empty
91
CHAT_TOO_BIG
The chat is too big for this action
92
CODE_EMPTY
The provided code is empty
93
CODE_HASH_INVALID
The provided code hash invalid
94
CODE_INVALID
The provided code is invalid (i.e. from email)
95
COLOR_INVALID
The provided color is invalid
96
CONNECTION_API_ID_INVALID
The provided API id is invalid
97
CONNECTION_APP_VERSION_EMPTY
App version is empty
98
CONNECTION_DEVICE_MODEL_EMPTY
The device model is empty
103
CONNECTION_SYSTEM_LANG_CODE_EMPTY
The system language code is empty
104
CONTACT_ADD_MISSING
Contact to add is missing
105
CONTACT_ID_INVALID
The provided contact id is invalid
106
CONTACT_MISSING
The specified user is not a contact.
107
CONTACT_NAME_EMPTY
The provided contact name is empty
108
CONTACT_REQ_MISSING
Missing contact request
109
CREATE_CALL_FAILED
An error occurred while creating the call
110
CURRENCY_TOTAL_AMOUNT_INVALID
The total amount of all prices is invalid
111
DATA_INVALID
The encrypted data is invalid
112
DATA_JSON_INVALID
The provided JSON data is invalid
113
DATA_TOO_LONG
Data too long
117
DOCUMENT_INVALID
The document is invalid
118
EMAIL_HASH_EXPIRED
The email hash expired and cannot be used to verify it
119
EMAIL_INVALID
The email provided is invalid
120
EMAIL_NOT_ALLOWED
This email is not allowed
121
EMAIL_NOT_SETUP
In order to change the login email with emailVerifyPurposeLoginChange, an existing login email must already be set using emailVerifyPurposeLoginSetup.
122
EMAIL_UNCONFIRMED
Email unconfirmed
123
EMAIL_UNCONFIRMED_X
The provided email isn't confirmed, {value} is the length of the verification code that was just sent to the email
124
EMAIL_VERIFY_EXPIRED
The verification email has expired
125
EMOJI_INVALID
The specified theme emoji is valid
126
EMOJI_MARKUP_INVALID
The specified `video_emoji_markup` was invalid.
127
EMOJI_NOT_MODIFIED
The theme wasn't changed
128
EMOTICON_EMPTY
The emoticon parameter is empty
129
EMOTICON_INVALID
The emoticon parameter is invalid
130
EMOTICON_STICKERPACK_MISSING
The emoticon sticker pack you are trying to obtain is missing
134
ENCRYPTION_DECLINED
The secret chat was declined
135
ENCRYPTION_ID_INVALID
The provided secret chat id is invalid
136
ENTITIES_TOO_LONG
The entity provided contains data that is too long, or you passed too many entities to this message
137
ENTITY_BOUNDS_INVALID
The message entity bounds are invalid
138
ENTITY_MENTION_USER_INVALID
The mentioned entity is not an user
139
ERROR_TEXT_EMPTY
The provided error message is empty
140
EXPIRE_DATE_INVALID
The expiration date is invalid
141
EXPIRE_FORBIDDEN
Expire forbidden
142
EXPORT_CARD_INVALID
The provided card is invalid
143
EXTENDED_MEDIA_AMOUNT_INVALID
The maximum amount of `star_count` should be less than the `stars_paid_post_amount_max`
144
EXTENDED_MEDIA_PEER_INVALID
The specified chat type is invalid.
145
EXTENDED_MEDIA_TYPE_INVALID
The specified extended media type is unsupported.
146
EXTERNAL_URL_INVALID
The external media URL is invalid
147
FIELD_NAME_EMPTY
The field with the name FIELD_NAME is missing
148
FIELD_NAME_INVALID
The field with the name FIELD_NAME is invalid
149
FILE_CONTENT_TYPE_INVALID
File content-type is invalid
150
FILE_EMTPY
An empty file was provided
151
FILE_ID_INVALID
The file id is invalid
152
FILE_MIGRATE_X
The file is in Data Center No. {value}
153
FILE_PARTS_INVALID
Invalid number of parts.
154
FILE_PART_0_MISSING
File part 0 missing
155
FILE_PART_EMPTY
The file part sent is empty
156
FILE_PART_INVALID
The file part number is invalid.
157
FILE_PART_LENGTH_INVALID
The length of a file part is invalid
162
FILE_REFERENCE_EMPTY
The file id contains an empty file reference, you must obtain a valid one by fetching the message from the origin context
163
FILE_REFERENCE_EXPIRED
The file id contains an expired file reference, you must obtain a valid one by fetching the message from the origin context
164
FILE_REFERENCE_INVALID
The file id contains an invalid file reference, you must obtain a valid one by fetching the message from the origin context
165
FILE_TITLE_EMPTY
An empty file title was specified
166
FILTER_ID_INVALID
The specified filter ID is invalid
167
FILTER_INCLUDE_EMPTY
The filter include is empty
168
FILTER_NOT_SUPPORTED
The specified filter cannot be used in this context
169
FILTER_TITLE_EMPTY
The title field of the filter is empty
170
FIRSTNAME_INVALID
The first name is invalid
171
FOLDER_ID_EMPTY
The folder you tried to delete was already empty
172
FOLDER_ID_INVALID
The folder id is invalid
173
FORM_ID_EXPIRED
The specified id has expired.
174
FORUM_ENABLED
You can't execute the specified action because the group is a [forum](https://core.telegram.org/api/forum), disable forum functionality to continue.
175
FRESH_CHANGE_ADMINS_FORBIDDEN
You can't change administrator settings in this chat because your session was logged-in recently
176
FROM_MESSAGE_BOT_DISABLED
Bots can't use fromMessage min constructors
177
FROM_PEER_INVALID
The from peer value is invalid
178
GAME_BOT_INVALID
You cannot send that game with the current bot
179
GENERAL_MODIFY_ICON_FORBIDDEN
You can't modify the icon of the General topic.
180
GEO_POINT_INVALID
Invalid geo point provided
181
GIF_CONTENT_TYPE_INVALID
GIF content-type invalid
182
GIF_ID_INVALID
The provided gif/animation id is invalid
183
GIFT_SLUG_INVALID
The specified slug is invalid.
184
GIFT_SLUG_EXPIRED
The gift slug is expired
185
GRAPH_EXPIRED_RELOAD
This graph has expired, please obtain a new graph token
186
GRAPH_INVALID_RELOAD
Invalid graph token provided, please reload the stats and provide the updated token
187
GRAPH_OUTDATED_RELOAD
The graph data is outdated
188
GROUPCALL_ALREADY_DISCARDED
The group call was already discarded
189
GROUPCALL_INVALID
The specified group call is invalid
190
GROUPCALL_JOIN_MISSING
You haven't joined this group call
191
GROUPCALL_NOT_MODIFIED
Group call settings weren't modified
192
GROUPCALL_SSRC_DUPLICATE_MUCH
Too many group call synchronization source duplicates
193
GROUPED_MEDIA_INVALID
The album contains invalid media
194
GROUP_CALL_INVALID
The group call is invalid
195
HASH_INVALID
The provided hash is invalid
196
HIDE_REQUESTER_MISSING
The join request was missing or was already handled
197
IMAGE_PROCESS_FAILED
The server failed to process your image
198
IMPORT_FILE_INVALID
The imported file is invalid
199
IMPORT_FORMAT_UNRECOGNIZED
The imported format is unrecognized
206
INPUT_LAYER_INVALID
The provided layer is invalid
207
INPUT_METHOD_INVALID
The method invoked is invalid in the current schema
208
INPUT_REQUEST_TOO_LONG
The input request is too long
209
INPUT_TEXT_EMPTY
The specified text is empty
210
INPUT_TEXT_TOO_LONG
The specified text is too long.
211
INPUT_USER_DEACTIVATED
The target user has been deleted/deactivated
212
INVITES_TOO_MUCH
The maximum number of per-folder invites specified by the `chatlist_invites_limit_default`/`chatlist_invites_limit_premium` was reached.
213
INVITE_FORBIDDEN_WITH_JOINAS
If the user has anonymously joined a group call as a channel, they can't invite other users to the group call because that would cause deanonymization, because the invite would be sent using the original user ID, not the anonymized channel ID
214
INVITE_HASH_EMPTY
The invite hash is empty
215
INVITE_HASH_EXPIRED
The chat invite link is no longer valid
216
INVITE_HASH_INVALID
The invite link hash is invalid
217
INVITE_REQUEST_SENT
The request to join this chat or channel has been successfully sent
218
INVITE_REVOKED_MISSING
The action required a chat invite link to be revoked first
219
INVITE_SLUG_EMPTY
The invite slug is empty
220
INVITE_SLUG_EXPIRED
The invite slug is expired
221
INVOICE_PAYLOAD_INVALID
The specified invoice payload is invalid
222
JOIN_AS_PEER_INVALID
The specified peer cannot be used to join a group call
223
LANG_CODE_INVALID
The specified language code is invalid
224
LANG_CODE_NOT_SUPPORTED
The specified language code is not supported
225
LANG_PACK_INVALID
The provided language pack is invalid
226
LASTNAME_INVALID
The last name is invalid
227
LIMIT_INVALID
The limit parameter is invalid
228
LINK_NOT_MODIFIED
The chat link was not modified because you tried to link to the same target
229
LOCATION_INVALID
The file location is invalid
230
MAX_DATE_INVALID
The specified maximum date is invalid
231
MAX_ID_INVALID
The max_id parameter is invalid
232
MAX_QTS_INVALID
The provided QTS is invalid
233
MD5_CHECKSUM_INVALID
The file's checksum did not match the md5_checksum parameter
234
MEDIA_CAPTION_TOO_LONG
The media caption is too long
235
MEDIA_EMPTY
The media you tried to send is invalid
236
MEDIA_FILE_INVALID
The provided media file is invalid
237
MEDIA_GROUPED_INVALID
You tried to send media of different types in an album
238
MEDIA_INVALID
The media is invalid
239
MEDIA_NEW_INVALID
The new media to edit the message with is invalid
240
MEDIA_PREV_INVALID
The previous media cannot be edited with anything else
241
MEDIA_TTL_INVALID
The media ttl is invalid
242
MEDIA_VIDEO_STORY_MISSING
The media does not have a photo or a video
243
MEGAGROUP_ID_INVALID
The supergroup is invalid
244
MEGAGROUP_PREHISTORY_HIDDEN
The action failed because the supergroup has the pre-history hidden
245
MEGAGROUP_REQUIRED
The request can only be used with a supergroup
251
MESSAGE_POLL_CLOSED
You can't interact with a closed poll
252
MESSAGE_TOO_LONG
The message text is too long
253
METHOD_INVALID
The API method is invalid and cannot be used
254
MIN_DATE_INVALID
The specified minimum date is invalid
255
MSG_ID_INVALID
The message ID used in the peer was invalid
256
MSG_TOO_OLD
chat_read_mark_expire_period have passed since the message was sent, read receipts were deleted
257
MSG_VOICE_MISSING
The message does not contain a voice message
258
MSG_WAIT_FAILED
A waiting call returned an error
259
MULTI_MEDIA_TOO_LONG
The album/media group contains too many items
260
NEW_SALT_INVALID
The new salt is invalid
261
NEW_SETTINGS_EMPTY
No password is set on the current account, and no new password was specified in `new_settings`
262
NEW_SETTINGS_INVALID
The new settings are invalid
263
NOGENERAL_HIDE_FORBIDDEN
The hidden parameter is only valid for the General topic message_thread_id=1
264
NEXT_OFFSET_INVALID
The next offset value is invalid
265
OFFSET_INVALID
The offset parameter is invalid
266
OFFSET_PEER_ID_INVALID
The provided offset peer is invalid
270
PACK_SHORT_NAME_OCCUPIED
A sticker pack with this name already exists
271
PACK_TITLE_INVALID
The sticker pack title is invalid
272
PARTICIPANTS_TOO_FEW
The chat doesn't have enough participants
273
PARTICIPANT_ID_INVALID
The specified participant ID is invalid
274
PARTICIPANT_JOIN_MISSING
Trying to enable a presentation, when the user hasn't joined the Video Chat with phone.joinGroupCall
275
PARTICIPANT_VERSION_OUTDATED
The other participant is using an outdated Telegram app version
276
PASSWORD_EMPTY
The password provided is empty
277
PASSWORD_HASH_INVALID
The two-step verification password is invalid
281
PASSWORD_TOO_FRESH_X
The two-step verification password was added recently and you are required to wait {value} seconds
282
PAYMENT_PROVIDER_INVALID
The payment provider was not recognised or its token was invalid
283
PEER_FLOOD
The method can't be used because your account is currently limited
284
PEER_HISTORY_EMPTY
Peer history empty
285
PEER_ID_INVALID
The peer id being used is invalid or not known yet. Make sure you meet the peer before interacting with it
286
PEER_ID_NOT_SUPPORTED
The provided peer id is not supported
287
PERSISTENT_TIMESTAMP_EMPTY
The pts argument is empty
290
PHONE_CODE_EXPIRED
The confirmation code has expired
291
PHONE_CODE_HASH_EMPTY
The phone code hash is missing
292
PHONE_CODE_INVALID
The confirmation code is invalid
293
PHONE_HASH_EXPIRED
An invalid or expired phone_code_hash was provided
294
PHONE_NOT_OCCUPIED
No user is associated to the specified phone number
295
PHONE_NUMBER_APP_SIGNUP_FORBIDDEN
You can't sign up using this app
296
PHONE_NUMBER_BANNED
The phone number is banned from Telegram and cannot be used
297
PHONE_NUMBER_FLOOD
This number has tried to login too many times
312
PHOTO_THUMB_URL_EMPTY
The photo thumb URL is empty
313
PHOTO_THUMB_URL_INVALID
The photo thumb URL is invalid
314
PINNED_DIALOGS_TOO_MUCH
Too many pinned dialogs
315
PINNED_TOPIC_NOT_MODIFIED
The pinned topic was not modified.
316
PIN_RESTRICTED
You can't pin messages in private chats with other people
317
POLL_ANSWERS_INVALID
The poll answers are invalid
318
POLL_ANSWER_INVALID
One of the poll answers is not acceptable
319
POLL_OPTION_DUPLICATE
A duplicate option was sent in the same poll
320
POLL_OPTION_INVALID
A poll option used invalid data (the data may be too long)
321
POLL_QUESTION_INVALID
The poll question is invalid
322
POLL_UNSUPPORTED
This layer does not support polls in the invoked method
323
POLL_VOTE_REQUIRED
Cast a vote in the poll before calling this method
324
PREMIUM_ACCOUNT_REQUIRED
The method requires a premium user account
325
PREMIUM_GIFTCODE_WAS_REFUNDED
This gift code can't be redeemed because the giveaway organizer requested a refund
326
PRICING_CHAT_INVALID
This chat chat doesn't support subscription link.
327
PRIVACY_KEY_INVALID
The privacy key is invalid
328
PRIVACY_TOO_LONG
Your privacy exception list has exceeded the maximum capacity
329
PRIVACY_VALUE_INVALID
The privacy value is invalid
330
PUBLIC_KEY_REQUIRED
A public key is required
331
QUERY_ID_EMPTY
The query ID is empty
332
QUERY_ID_INVALID
The callback query id is invalid
333
QUERY_TOO_SHORT
The query is too short
334
QUIZ_ANSWER_MISSING
You can forward a quiz while hiding the original author only after choosing an option in the quiz
335
QUIZ_CORRECT_ANSWERS_EMPTY
The correct answers of the quiz are empty
336
QUIZ_CORRECT_ANSWERS_TOO_MUCH
The quiz contains too many correct answers
337
QUIZ_CORRECT_ANSWER_INVALID
The correct answers of the quiz are invalid
347
REPLY_MARKUP_GAME_EMPTY
The provided reply markup for the game is empty
348
REPLY_MARKUP_INVALID
The provided reply markup is invalid
349
REPLY_MARKUP_TOO_LONG
The reply markup is too long
350
REPLY_MESSAGE_ID_INVALID
The reply message id is invalid
351
RESET_REQUEST_MISSING
No password reset is in progress
352
RESULTS_TOO_MUCH
The result contains too many items
353
RESULT_ID_DUPLICATE
The result contains items with duplicated identifiers
354
RESULT_ID_EMPTY
Result ID empty
355
RESULT_ID_INVALID
The given result cannot be used to send the selection to the bot
356
REACTIONS_TOO_MANY
Currently, non-premium users, can set up to one reaction per message
357
RESULT_TYPE_INVALID
The result type is invalid
358
REVOTE_NOT_ALLOWED
You cannot change your vote
359
RIGHTS_NOT_MODIFIED
The new admin rights are equal to the old rights, no change was made
360
RSA_DECRYPT_FAILED
Internal RSA decryption failed
361
SCHEDULE_BOT_NOT_ALLOWED
Bots are not allowed to schedule messages
362
SCHEDULE_DATE_INVALID
Invalid schedule date provided
363
SCHEDULE_DATE_TOO_LATE
The date you tried to schedule is too far in the future (more than one year)
364
SCHEDULE_STATUS_PRIVATE
You cannot schedule a message until the person comes online if their privacy does not show this information
365
SCHEDULE_TOO_MUCH
You tried to schedule too many messages in this chat
366
SCORE_INVALID
The specified game score is invalid
367
SEARCH_QUERY_EMPTY
The search query is empty
368
SEARCH_WITH_LINK_NOT_SUPPORTED
You cannot provide a search query and an invite link at the same time
369
SECONDS_INVALID
The seconds interval is invalid
370
SEND_AS_PEER_INVALID
You can't send messages as the specified peer
371
SEND_MESSAGE_MEDIA_INVALID
The message media is invalid
372
SEND_MESSAGE_TYPE_INVALID
The message type is invalid
373
SESSION_TOO_FRESH_X
You can't do this action because the current session was logged-in recently
374
SETTINGS_INVALID
Invalid settings were provided
375
SHA256_HASH_INVALID
The provided SHA256 hash is invalid
376
SHORTNAME_OCCUPY_FAILED
An error occurred when trying to register the short-name used for the sticker pack. Try a different name
377
SHORT_NAME_INVALID
The specified short name is invalid
378
SHORT_NAME_OCCUPIED
The specified short name is already in use
379
SLOWMODE_MULTI_MSGS_DISABLED
Slowmode is enabled, you cannot forward multiple messages to this group
380
SMS_CODE_CREATE_FAILED
An error occurred while creating the SMS code
381
SRP_ID_INVALID
Invalid SRP ID provided
382
SRP_PASSWORD_CHANGED
The password has changed
383
STARGIFT_ALREADY_CONVERTED
The provided star gift already converted to stars
384
STARGIFT_ALREADY_UPGRADED
This star gift was already upgraded before
385
STARGIFT_USAGE_LIMITED
The star gift usage is limited
386
START_PARAM_EMPTY
The start parameter is empty
387
START_PARAM_INVALID
The start parameter is invalid
388
START_PARAM_TOO_LONG
The start parameter is too long
389
STICKERPACK_STICKERS_TOO_MUCH
There are too many stickers in this stickerpack, you can't add any more
390
STICKERSET_INVALID
The requested sticker set is invalid
391
STICKERSET_NOT_MODIFIED
The sticker set is not modified
392
STICKERS_EMPTY
The sticker provided is empty
394
STICKER_DOCUMENT_INVALID
The sticker document is invalid
395
STICKER_EMOJI_INVALID
The sticker emoji is invalid
396
STICKER_FILE_INVALID
The sticker file is invalid
397
STICKER_GIF_DIMENSIONS
The specified video sticker has invalid dimensions
398
STICKER_ID_INVALID
The provided sticker id is invalid
399
STICKER_INVALID
The provided sticker is invalid
400
STICKER_MIME_INVALID
Make sure to pass a valid image file for the right InputFile parameter
401
STICKER_PNG_DIMENSIONS
The sticker png dimensions are invalid
402
STICKER_PNG_NOPNG
Stickers must be png files but the provided image was not a png
403
STICKER_TGS_NODOC
You must send the animated sticker as a document
404
STICKER_TGS_NOTGS
A tgs sticker file was expected, but something else was provided
STICKER_VIDEO_NOWEBM
A webm video file was expected, but something else was provided
405
STICKER_THUMB_PNG_NOPNG
A png sticker thumbnail file was expected, but something else was provided
406
STICKER_VIDEO_BIG
The specified video sticker is too big
407
STICKER_VIDEO_NODOC
You must send the video sticker as a document
408
STICKER_VIDEO_NOWEBM
A webm video file was expected, but something else was provided
409
STORY_ID_EMPTY
You specified no story IDs.
410
STORY_ID_INVALID
The specified story ID is invalid.
411
STORY_NOT_MODIFIED
The new story information you passed is equal to the previous story information, thus it wasn't modified.
412
STORY_PERIOD_INVALID
The specified story period is invalid for this account.
413
STORIES_TOO_MUCH
Too many stories in the current account
414
STORY_SEND_FLOOD_WEEKLY_X
You've hit the weekly story limit, wait for the specified number of seconds before posting a new story.
415
STORY_SEND_FLOOD_MONTHLY_X
You've hit the monthly story limit, wait for the specified number of seconds before posting a new story.
416
STORY_PERIOD_INVALID
The story period is invalid
417
SUBSCRIPTION_PERIOD_INVALID
The subscription period is invalid.
418
SWITCH_PM_TEXT_EMPTY
The switch_pm.text field was empty
419
TAKEOUT_INVALID
The takeout id is invalid
420
TAKEOUT_REQUIRED
The method must be invoked inside a takeout session
421
TEMP_AUTH_KEY_ALREADY_BOUND
The passed temporary key is already bound to another perm_auth_key_id
422
TEMP_AUTH_KEY_EMPTY
The temporary auth key provided is empty
423
THEME_FILE_INVALID
Invalid theme file provided
424
THEME_FORMAT_INVALID
Invalid theme format provided
425
THEME_INVALID
Invalid theme provided
426
THEME_MIME_INVALID
You cannot create this theme because the mime-type is invalid
427
THEME_TITLE_INVALID
The specified theme title is invalid
428
TITLE_INVALID
The specified stickerpack title is invalid
429
TMP_PASSWORD_DISABLED
The temporary password is disabled
430
TMP_PASSWORD_INVALID
The temporary password is invalid
431
TOKEN_INVALID
The provided token is invalid
432
TOPIC_CLOSED
The topic was closed
433
TOPIC_DELETED
The topic was deleted
434
TOPIC_CLOSE_SEPARATELY
The close flag cannot be provided together with any of the other flags.
435
TOPIC_HIDE_SEPARATELY
The hide flag cannot be provided together with any of the other flags.
436
TOPIC_ID_INVALID
The provided topic ID is invalid
437
TOPIC_NOT_MODIFIED
The topic was not modified
438
TOPIC_TITLE_EMPTY
The specified topic title is empty.
439
TO_LANG_INVALID
The specified destination language is invalid
440
TRANSCRIPTION_FAILED
Telegram is having internal problems. Please try again later to transcribe the audio.
441
TTL_DAYS_INVALID
The provided TTL days is invalid
442
TTL_MEDIA_INVALID
The media does not support self-destruction
443
TYPES_EMPTY
The types parameter is empty
444
TYPE_CONSTRUCTOR_INVALID
The type constructor is invalid
445
UNKNOWN_ERROR
Unknown error
446
UNTIL_DATE_INVALID
That date parameter is invalid
447
URL_INVALID
The URL provided is invalid
448
USAGE_LIMIT_INVALID
The usage limit is invalid
450
USERNAME_NOT_MODIFIED
The username was not modified because you tried to edit it using the same one
451
USERNAME_NOT_OCCUPIED
The username is not occupied by anyone
452
USERNAME_OCCUPIED
The username is already in use by someone else
453
USERNAME_PURCHASE_AVAILABLE
The username is available for purchase on fragment.com
454
USERPIC_UPLOAD_REQUIRED
You are required to upload a profile picture for this action
455
USERS_TOO_FEW
Not enough users (to create a chat, for example)
456
USERS_TOO_MUCH
The maximum number of users has been exceeded (to create a chat, for example)
457
USER_ADMIN_INVALID
The action requires admin privileges. Probably you tried to edit admin privileges on someone you don't have rights to
458
USER_ALREADY_INVITED
You have already invited this user
459
USER_ALREADY_PARTICIPANT
The user is already a participant of this chat
460
USER_BANNED_IN_CHANNEL
You are limited from sending messages in supergroups/channels, check @SpamBot for details
461
USER_BLOCKED
The user is blocked
471
USER_KICKED
This user was kicked from this chat
472
USER_NOT_MUTUAL_CONTACT
The user is not a mutual contact
473
USER_NOT_PARTICIPANT
The user is not a member of this chat
474
USER_PUBLIC_MISSING
The accounts username is missing
475
USER_VOLUME_INVALID
The specified user volume is invalid
476
VIDEO_CONTENT_TYPE_INVALID
The video content type is invalid (i.e.: not streamable)
477
VIDEO_FILE_INVALID
The video file is invalid
478
VIDEO_TITLE_EMPTY
The specified video title is empty
479
VOICE_MESSAGES_FORBIDDEN
This user's privacy settings forbid you from sending voice messages
480
VOLUME_LOC_NOT_FOUND
The volume location can't be found
481
WALLPAPER_FILE_INVALID
The provided file cannot be used as a wallpaper
482
WALLPAPER_INVALID
The input wallpaper was not valid
483
WALLPAPER_MIME_INVALID
The wallpaper mime type is invalid
484
WALLPAPER_NOT_FOUND
The specified wallpaper could not be found.
485
WC_CONVERT_URL_INVALID
WC convert URL invalid
486
WEBDOCUMENT_INVALID
The web document is invalid
487
WEBDOCUMENT_MIME_INVALID
The web document mime type is invalid
490
WEBDOCUMENT_URL_INVALID
The web document URL is invalid
491
WEBPAGE_CURL_FAILED
Telegram server could not fetch the provided URL
492
WEBPAGE_MEDIA_EMPTY
The URL doesn't contain any valid media
493
WEBPAGE_NOT_FOUND
Webpage not found
494
WEBPAGE_URL_INVALID
Webpage url invalid
495
WEBPUSH_AUTH_INVALID
The specified web push authentication secret is invalid
496
WEBPUSH_KEY_INVALID
The specified web push elliptic curve Diffie-Hellman public key is invalid
497
WEBPUSH_TOKEN_INVALID
The specified web push token is invalid
498
YOU_BLOCKED_USER
You blocked this user
499
ENTITY_BOUNDS_INVALIDSTORIES_NEVER_CREATED
The message entity bounds are invalidYou have never created any stories
500
MEDIA_FILE_INVALID
The provided media file is invalid
501
CHANNEL_FORUM_MISSING
The channel forum is missing
502
TTL_PERIOD_INVALID
The provided TTL period is invalid
503
BOOSTS_REQUIRED
The specified channel must first be boosted by its users in order to perform this action
@ -4,25 +4,44 @@ CHANNEL_PUBLIC_GROUP_NA The channel/supergroup is not available
CHAT_ADMIN_INVITE_REQUIRED You don't have rights to invite other users
CHAT_ADMIN_REQUIRED The method requires chat admin privileges
CHAT_FORBIDDEN You cannot write in this chat
CHAT_SEND_GIFS_FORBIDDEN You can't send animations in this chat
CHAT_SEND_INLINE_FORBIDDEN You cannot use inline bots to send messages in this chat
CHAT_SEND_MEDIA_FORBIDDEN You can't send media messages in this chat
CHAT_SEND_POLL_FORBIDDEN You can't send polls in this chat
CHAT_SEND_STICKERS_FORBIDDEN You can't send stickers in this chat
CHAT_WRITE_FORBIDDEN You don't have rights to send messages in this chat
CHAT_GUEST_SEND_FORBIDDEN You need to join the discussion group before commentingr
EDIT_BOT_INVITE_FORBIDDEN Bots' chat invite links can't be edited
INLINE_BOT_REQUIRED The action must be performed through an inline bot callback
MESSAGE_AUTHOR_REQUIRED You are not the author of this message
MESSAGE_DELETE_FORBIDDEN You don't have rights to delete messages in this chat, most likely because you are not the author of them
NOT_ALLOWED Not allowed
NOT_ELIGIBLE You are not eligible for this action
PARTICIPANT_JOIN_MISSING Trying to enable a presentation, when the user hasn't joined the Video Chat with phone.joinGroupCall
POLL_VOTE_REQUIRED Cast a vote in the poll before calling this method
PREMIUM_ACCOUNT_REQUIRED This action requires a premium account
PRIVACY_PREMIUM_REQUIRED The user has restricted from sending messages OR This action requires a premium account
PUBLIC_CHANNEL_MISSING You can only export group call invite links for public chats or channels
RIGHT_FORBIDDEN You don't have enough rights for this action, or you tried to set one or more admin rights that can't be applied to this kind of chat (channel or supergroup)
SENSITIVE_CHANGE_FORBIDDEN Your sensitive content settings can't be changed at this time
TAKEOUT_REQUIRED The method must be invoked inside a takeout session
USER_BOT_INVALID This method can only be called by a bot
USER_CHANNELS_TOO_MUCH One of the users you tried to add is already in too many channels/supergroups
USER_DELETED You can't send this secret message because the other participant deleted their account
USER_INVALID The provided user is invalid
USER_IS_BLOCKED The user is blocked
USER_NOT_MUTUAL_CONTACT The provided user is not a mutual contact
USER_PRIVACY_RESTRICTED The user's privacy settings is preventing you to perform this action
USER_RESTRICTED You are limited/restricted. You can't perform this action
PREMIUM_ACCOUNT_REQUIRED This action requires a premium account
CHAT_SEND_AUDIOS_FORBIDDEN You can't send audio messages in this chat
CHAT_SEND_DOCS_FORBIDDEN You can't send a documents to this chat
CHAT_SEND_GAME_FORBIDDEN You can't send a game to this chat
CHAT_SEND_GIFS_FORBIDDEN You can't send gifs in this chat
CHAT_SEND_INLINE_FORBIDDEN You can't use inline bot to send messages in this chat
CHAT_SEND_MEDIA_FORBIDDEN You can't send media in this chat
CHAT_SEND_PHOTOS_FORBIDDEN You can't send photos in this chat
CHAT_SEND_PLAIN_FORBIDDEN You can't send non-media (text) messages in this chat
CHAT_SEND_POLL_FORBIDDEN You can't send polls in this chat
CHAT_SEND_STICKERS_FORBIDDEN You can't send stickers in this chat
CHAT_SEND_VIDEOS_FORBIDDEN You can't send videos in this chat
CHAT_SEND_VOICES_FORBIDDEN You can't send voice recordings in this chat
CHAT_WRITE_FORBIDDEN You can't write in this chat
GROUPCALL_ALREADY_STARTED The groupcall has already started, you can join directly using phone.joinGroupCall
GROUPCALL_FORBIDDEN The group call has already ended
LIVE_DISABLED Story is disabled server-side
CHAT_GUEST_SEND_FORBIDDEN You need to join the discussion group before commenting
ALLOW_PAYMENT_REQUIRED_X Payment of {value} stars is required to perform this action
1
id
message
4
CHAT_ADMIN_INVITE_REQUIRED
You don't have rights to invite other users
5
CHAT_ADMIN_REQUIRED
The method requires chat admin privileges
6
CHAT_FORBIDDEN
You cannot write in this chat
7
CHAT_SEND_GIFS_FORBIDDENCHAT_GUEST_SEND_FORBIDDEN
You can't send animations in this chatYou need to join the discussion group before commentingr
CHAT_SEND_INLINE_FORBIDDEN
You cannot use inline bots to send messages in this chat
CHAT_SEND_MEDIA_FORBIDDEN
You can't send media messages in this chat
CHAT_SEND_POLL_FORBIDDEN
You can't send polls in this chat
CHAT_SEND_STICKERS_FORBIDDEN
You can't send stickers in this chat
CHAT_WRITE_FORBIDDEN
You don't have rights to send messages in this chat
8
EDIT_BOT_INVITE_FORBIDDEN
Bots' chat invite links can't be edited
9
INLINE_BOT_REQUIRED
The action must be performed through an inline bot callback
10
MESSAGE_AUTHOR_REQUIRED
You are not the author of this message
11
MESSAGE_DELETE_FORBIDDEN
You don't have rights to delete messages in this chat, most likely because you are not the author of them
12
NOT_ALLOWED
Not allowed
13
NOT_ELIGIBLE
You are not eligible for this action
14
PARTICIPANT_JOIN_MISSING
Trying to enable a presentation, when the user hasn't joined the Video Chat with phone.joinGroupCall
15
POLL_VOTE_REQUIRED
Cast a vote in the poll before calling this method
16
PREMIUM_ACCOUNT_REQUIRED
This action requires a premium account
17
PRIVACY_PREMIUM_REQUIRED
The user has restricted from sending messages OR This action requires a premium account
18
PUBLIC_CHANNEL_MISSING
You can only export group call invite links for public chats or channels
19
RIGHT_FORBIDDEN
You don't have enough rights for this action, or you tried to set one or more admin rights that can't be applied to this kind of chat (channel or supergroup)
20
SENSITIVE_CHANGE_FORBIDDEN
Your sensitive content settings can't be changed at this time
21
TAKEOUT_REQUIRED
The method must be invoked inside a takeout session
22
USER_BOT_INVALID
This method can only be called by a bot
23
USER_CHANNELS_TOO_MUCH
One of the users you tried to add is already in too many channels/supergroups
24
USER_DELETED
You can't send this secret message because the other participant deleted their account
25
USER_INVALID
The provided user is invalid
26
USER_IS_BLOCKED
The user is blocked
27
USER_NOT_MUTUAL_CONTACT
The provided user is not a mutual contact
28
USER_PRIVACY_RESTRICTED
The user's privacy settings is preventing you to perform this action
29
USER_RESTRICTED
You are limited/restricted. You can't perform this action
AUTH_KEY_DUPLICATED The same authorization key (session file) was used in more than one place simultaneously. You must delete your session file and log in again with your phone number or bot token
CHANNEL_PRIVATE The channel/supergroup is not accessible
CHANNEL_TOO_LARGE Сhannel is too large to be deleted. Contact support for removal
CHAT_FORWARDS_RESTRICTED You can't forward messages from a protected chat
FILEREF_UPGRADE_NEEDED The file reference has expired and you must use a refreshed one by obtaining the original media message
FRESH_CHANGE_ADMINS_FORBIDDEN You were just elected admin, you can't add or modify other admins yet
FRESH_CHANGE_PHONE_FORBIDDEN You can't change your phone number because your session was logged-in recently
FRESH_RESET_AUTHORISATION_FORBIDDEN You can't terminate other authorized sessions because the current was logged-in recently
GIFTCODE_NOT_ALLOWED Giftcode not allowed
INVITE_HASH_EXPIRED The chat the user tried to join has expired and is not valid anymore
PHONE_NUMBER_INVALID The phone number is invalid
PHONE_PASSWORD_FLOOD You have tried to log-in too many times
PREMIUM_CURRENTLY_UNAVAILABLE Premium currently unavailable
PREVIOUS_CHAT_IMPORT_ACTIVE_WAIT_XMIN Similar to a flood wait, must wait {value} minutes
SEND_CODE_UNAVAILABLE Returned when all available options for this type of number were already used (e.g. flash-call, then SMS, then this error might be returned to trigger a second resend)
PREMIUM_GIFTCODE_WAS_REFUNDED This gift code can't be redeemed because the giveaway organizer requested a refund
STICKERSET_INVALID The sticker set is invalid
STICKERSET_OWNER_ANONYMOUS This sticker set can't be used as the group's sticker set because it was created by one of its anonymous admins
UPDATE_APP_TO_LOGIN Update app to login
USERPIC_PRIVACY_REQUIRED You need to disable privacy settings for your profile picture in order to make your geolocation public
USERPIC_UPLOAD_REQUIRED You must have a profile picture to publish your geolocation
USER_RESTRICTED You are limited/restricted. You can't perform this action
USER_RESTRICTED You are limited/restricted. You can't perform this action
1
id
message
2
AUTH_KEY_DUPLICATED
The same authorization key (session file) was used in more than one place simultaneously. You must delete your session file and log in again with your phone number or bot token
3
CHANNEL_PRIVATE
The channel/supergroup is not accessible
4
CHANNEL_TOO_LARGE
Сhannel is too large to be deleted. Contact support for removal
5
CHAT_FORWARDS_RESTRICTED
You can't forward messages from a protected chat
6
FILEREF_UPGRADE_NEEDED
The file reference has expired and you must use a refreshed one by obtaining the original media message
7
FRESH_CHANGE_ADMINS_FORBIDDEN
You were just elected admin, you can't add or modify other admins yet
8
FRESH_CHANGE_PHONE_FORBIDDEN
You can't change your phone number because your session was logged-in recently
9
FRESH_RESET_AUTHORISATION_FORBIDDEN
You can't terminate other authorized sessions because the current was logged-in recently
10
GIFTCODE_NOT_ALLOWED
Giftcode not allowed
11
INVITE_HASH_EXPIRED
The chat the user tried to join has expired and is not valid anymore
12
PHONE_NUMBER_INVALID
The phone number is invalid
13
PHONE_PASSWORD_FLOOD
You have tried to log-in too many times
14
PREMIUM_CURRENTLY_UNAVAILABLE
Premium currently unavailable
15
PREVIOUS_CHAT_IMPORT_ACTIVE_WAIT_XMIN
Similar to a flood wait, must wait {value} minutes
16
SEND_CODE_UNAVAILABLE
Returned when all available options for this type of number were already used (e.g. flash-call, then SMS, then this error might be returned to trigger a second resend)
17
PREMIUM_GIFTCODE_WAS_REFUNDED
This gift code can't be redeemed because the giveaway organizer requested a refund
18
STICKERSET_INVALID
The sticker set is invalid
19
STICKERSET_OWNER_ANONYMOUS
This sticker set can't be used as the group's sticker set because it was created by one of its anonymous admins
20
UPDATE_APP_TO_LOGIN
Update app to login
21
USERPIC_PRIVACY_REQUIRED
You need to disable privacy settings for your profile picture in order to make your geolocation public
22
USERPIC_UPLOAD_REQUIRED
You must have a profile picture to publish your geolocation
23
USER_RESTRICTED
You are limited/restricted. You can't perform this action