mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-23 23:34:28 +00:00
Sort the lists of known errors
This commit is contained in:
parent
d53e1c235b
commit
a58e19827a
@ -28,6 +28,7 @@ BOT_INLINE_DISABLED The inline feature of the bot is disabled
|
||||
BOT_INVALID This is not a valid bot
|
||||
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
|
||||
@ -101,6 +102,7 @@ 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
|
||||
@ -154,6 +156,7 @@ INPUT_USER_DEACTIVATED The target user has been deleted/deactivated
|
||||
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
|
||||
LANG_PACK_INVALID The provided language pack is invalid
|
||||
LASTNAME_INVALID The last name is invalid
|
||||
@ -297,8 +300,8 @@ STICKER_INVALID The provided sticker is invalid
|
||||
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_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_NOWEBM A webm video file was expected, but something else was provided
|
||||
TAKEOUT_INVALID The takeout id is invalid
|
||||
TAKEOUT_REQUIRED The method must be invoked inside a takeout session
|
||||
TEMP_AUTH_KEY_EMPTY The temporary auth key provided is empty
|
||||
@ -354,7 +357,4 @@ 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
|
||||
YOU_BLOCKED_USER You blocked this user
|
||||
ENTITY_BOUNDS_INVALID The message entity bounds are invalid
|
||||
BOT_ONESIDE_NOT_AVAIL Bots can't pin messages for one side only in private chats
|
||||
INVITE_REQUEST_SENT The request to join this chat or channel has been successfully sent
|
||||
YOU_BLOCKED_USER You blocked this user
|
|
@ -15,6 +15,7 @@ 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
|
||||
POLL_VOTE_REQUIRED Cast a vote in the poll before calling this method
|
||||
PREMIUM_ACCOUNT_REQUIRED This action requires a premium account
|
||||
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
|
||||
@ -24,5 +25,4 @@ 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
|
||||
USER_RESTRICTED You are limited/restricted. You can't perform this action
|
|
Loading…
Reference in New Issue
Block a user