mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-28 20:33:45 +03:00
Add new known errors (#1265)
This commit is contained in:
parent
47956ddbca
commit
95ba02a9d3
|
@ -205,6 +205,7 @@ RANDOM_ID_DUPLICATE,500,You provided a random ID that was already used
|
||||||
RANDOM_ID_INVALID,400,A provided random ID is invalid
|
RANDOM_ID_INVALID,400,A provided random ID is invalid
|
||||||
RANDOM_LENGTH_INVALID,400,Random length invalid
|
RANDOM_LENGTH_INVALID,400,Random length invalid
|
||||||
RANGES_INVALID,400,Invalid range provided
|
RANGES_INVALID,400,Invalid range provided
|
||||||
|
REACTION_INVALID,400,Invalid reaction provided (only emoji are allowed)
|
||||||
REG_ID_GENERATE_FAILED,500,Failure while generating registration ID
|
REG_ID_GENERATE_FAILED,500,Failure while generating registration ID
|
||||||
REPLY_MARKUP_INVALID,400,The provided reply markup is invalid
|
REPLY_MARKUP_INVALID,400,The provided reply markup is invalid
|
||||||
REPLY_MARKUP_TOO_LONG,400,The data embedded in the reply markup buttons was too much
|
REPLY_MARKUP_TOO_LONG,400,The data embedded in the reply markup buttons was too much
|
||||||
|
@ -215,7 +216,10 @@ RIGHT_FORBIDDEN,403,Either your admin rights do not allow you to do this or you
|
||||||
RPC_CALL_FAIL,,"Telegram is having internal issues, please try again later."
|
RPC_CALL_FAIL,,"Telegram is having internal issues, please try again later."
|
||||||
RPC_MCGET_FAIL,,"Telegram is having internal issues, please try again later."
|
RPC_MCGET_FAIL,,"Telegram is having internal issues, please try again later."
|
||||||
RSA_DECRYPT_FAILED,400,Internal RSA decryption failed
|
RSA_DECRYPT_FAILED,400,Internal RSA decryption failed
|
||||||
|
SCHEDULE_DATE_TOO_LATE,400,The date you tried to schedule is too far in the future (several years long)
|
||||||
|
SCHEDULE_TOO_MUCH,400,You cannot schedule more messages in this chat (last known limit of 100 per chat)
|
||||||
SEARCH_QUERY_EMPTY,400,The search query is empty
|
SEARCH_QUERY_EMPTY,400,The search query is empty
|
||||||
|
SECONDS_INVALID,400,"Slow mode only supports certain values (e.g. 0, 10s, 30s, 1m, 5m, 15m and 1h)"
|
||||||
SEND_MESSAGE_MEDIA_INVALID,400,The message media was invalid or not specified
|
SEND_MESSAGE_MEDIA_INVALID,400,The message media was invalid or not specified
|
||||||
SEND_MESSAGE_TYPE_INVALID,400,The message type is invalid
|
SEND_MESSAGE_TYPE_INVALID,400,The message type is invalid
|
||||||
SESSION_EXPIRED,401,The authorization has expired
|
SESSION_EXPIRED,401,The authorization has expired
|
||||||
|
|
|
|
@ -97,6 +97,7 @@ channels.setDiscussionGroup,user,BROADCAST_ID_INVALID LINK_NOT_MODIFIED MEGAGROU
|
||||||
channels.setStickers,both,CHANNEL_INVALID PARTICIPANTS_TOO_FEW
|
channels.setStickers,both,CHANNEL_INVALID PARTICIPANTS_TOO_FEW
|
||||||
channels.togglePreHistoryHidden,user,CHAT_LINK_EXISTS
|
channels.togglePreHistoryHidden,user,CHAT_LINK_EXISTS
|
||||||
channels.toggleSignatures,user,CHANNEL_INVALID
|
channels.toggleSignatures,user,CHANNEL_INVALID
|
||||||
|
channels.toggleSlowMode,user,SECONDS_INVALID
|
||||||
channels.updateUsername,user,CHANNELS_ADMIN_PUBLIC_TOO_MUCH CHANNEL_INVALID CHAT_ADMIN_REQUIRED USERNAME_INVALID USERNAME_OCCUPIED
|
channels.updateUsername,user,CHANNELS_ADMIN_PUBLIC_TOO_MUCH CHANNEL_INVALID CHAT_ADMIN_REQUIRED USERNAME_INVALID USERNAME_OCCUPIED
|
||||||
contacts.block,user,CONTACT_ID_INVALID
|
contacts.block,user,CONTACT_ID_INVALID
|
||||||
contacts.deleteByPhones,user,
|
contacts.deleteByPhones,user,
|
||||||
|
@ -168,7 +169,7 @@ messages.editInlineBotMessage,both,MESSAGE_ID_INVALID MESSAGE_NOT_MODIFIED
|
||||||
messages.editMessage,both,CHANNEL_INVALID CHANNEL_PRIVATE CHAT_WRITE_FORBIDDEN INPUT_USER_DEACTIVATED MEDIA_NEW_INVALID MEDIA_PREV_INVALID MESSAGE_AUTHOR_REQUIRED MESSAGE_EDIT_TIME_EXPIRED MESSAGE_EMPTY MESSAGE_ID_INVALID MESSAGE_NOT_MODIFIED PEER_ID_INVALID
|
messages.editMessage,both,CHANNEL_INVALID CHANNEL_PRIVATE CHAT_WRITE_FORBIDDEN INPUT_USER_DEACTIVATED MEDIA_NEW_INVALID MEDIA_PREV_INVALID MESSAGE_AUTHOR_REQUIRED MESSAGE_EDIT_TIME_EXPIRED MESSAGE_EMPTY MESSAGE_ID_INVALID MESSAGE_NOT_MODIFIED PEER_ID_INVALID
|
||||||
messages.exportChatInvite,user,CHAT_ID_INVALID
|
messages.exportChatInvite,user,CHAT_ID_INVALID
|
||||||
messages.faveSticker,user,STICKER_ID_INVALID
|
messages.faveSticker,user,STICKER_ID_INVALID
|
||||||
messages.forwardMessages,both,CHANNEL_INVALID CHANNEL_PRIVATE CHAT_ADMIN_REQUIRED CHAT_ID_INVALID CHAT_SEND_GIFS_FORBIDDEN CHAT_SEND_MEDIA_FORBIDDEN CHAT_SEND_STICKERS_FORBIDDEN CHAT_WRITE_FORBIDDEN GROUPED_MEDIA_INVALID INPUT_USER_DEACTIVATED MEDIA_EMPTY MESSAGE_IDS_EMPTY MESSAGE_ID_INVALID PEER_ID_INVALID PTS_CHANGE_EMPTY RANDOM_ID_DUPLICATE RANDOM_ID_INVALID Timeout USER_BANNED_IN_CHANNEL USER_IS_BLOCKED USER_IS_BOT YOU_BLOCKED_USER
|
messages.forwardMessages,both,CHANNEL_INVALID CHANNEL_PRIVATE CHAT_ADMIN_REQUIRED CHAT_ID_INVALID CHAT_SEND_GIFS_FORBIDDEN CHAT_SEND_MEDIA_FORBIDDEN CHAT_SEND_STICKERS_FORBIDDEN CHAT_WRITE_FORBIDDEN GROUPED_MEDIA_INVALID INPUT_USER_DEACTIVATED MEDIA_EMPTY MESSAGE_IDS_EMPTY MESSAGE_ID_INVALID PEER_ID_INVALID PTS_CHANGE_EMPTY RANDOM_ID_DUPLICATE RANDOM_ID_INVALID SCHEDULE_DATE_TOO_LATE SCHEDULE_TOO_MUCH Timeout USER_BANNED_IN_CHANNEL USER_IS_BLOCKED USER_IS_BOT YOU_BLOCKED_USER
|
||||||
messages.getAllChats,user,
|
messages.getAllChats,user,
|
||||||
messages.getAllDrafts,user,
|
messages.getAllDrafts,user,
|
||||||
messages.getAllStickers,user,
|
messages.getAllStickers,user,
|
||||||
|
@ -235,10 +236,11 @@ messages.searchStickerSets,user,
|
||||||
messages.sendEncrypted,user,CHAT_ID_INVALID DATA_INVALID ENCRYPTION_DECLINED MSG_WAIT_FAILED
|
messages.sendEncrypted,user,CHAT_ID_INVALID DATA_INVALID ENCRYPTION_DECLINED MSG_WAIT_FAILED
|
||||||
messages.sendEncryptedFile,user,MSG_WAIT_FAILED
|
messages.sendEncryptedFile,user,MSG_WAIT_FAILED
|
||||||
messages.sendEncryptedService,user,DATA_INVALID ENCRYPTION_DECLINED MSG_WAIT_FAILED USER_IS_BLOCKED
|
messages.sendEncryptedService,user,DATA_INVALID ENCRYPTION_DECLINED MSG_WAIT_FAILED USER_IS_BLOCKED
|
||||||
messages.sendInlineBotResult,user,CHAT_SEND_INLINE_FORBIDDEN CHAT_WRITE_FORBIDDEN INLINE_RESULT_EXPIRED PEER_ID_INVALID QUERY_ID_EMPTY WEBPAGE_CURL_FAILED WEBPAGE_MEDIA_EMPTY
|
messages.sendInlineBotResult,user,CHAT_SEND_INLINE_FORBIDDEN CHAT_WRITE_FORBIDDEN INLINE_RESULT_EXPIRED PEER_ID_INVALID QUERY_ID_EMPTY SCHEDULE_DATE_TOO_LATE SCHEDULE_TOO_MUCH WEBPAGE_CURL_FAILED WEBPAGE_MEDIA_EMPTY
|
||||||
messages.sendMedia,both,BOT_PAYMENTS_DISABLED BOT_POLLS_DISABLED CHANNEL_INVALID CHANNEL_PRIVATE CHAT_ADMIN_REQUIRED CHAT_SEND_MEDIA_FORBIDDEN CHAT_WRITE_FORBIDDEN EXTERNAL_URL_INVALID FILE_PARTS_INVALID FILE_PART_LENGTH_INVALID INPUT_USER_DEACTIVATED MEDIA_CAPTION_TOO_LONG MEDIA_EMPTY PAYMENT_PROVIDER_INVALID PEER_ID_INVALID PHOTO_EXT_INVALID PHOTO_INVALID_DIMENSIONS PHOTO_SAVE_FILE_INVALID POLL_OPTION_DUPLICATE RANDOM_ID_DUPLICATE STORAGE_CHECK_FAILED Timeout USER_BANNED_IN_CHANNEL USER_IS_BLOCKED USER_IS_BOT VIDEO_CONTENT_TYPE_INVALID WEBPAGE_CURL_FAILED WEBPAGE_MEDIA_EMPTY
|
messages.sendMedia,both,BOT_PAYMENTS_DISABLED BOT_POLLS_DISABLED CHANNEL_INVALID CHANNEL_PRIVATE CHAT_ADMIN_REQUIRED CHAT_SEND_MEDIA_FORBIDDEN CHAT_WRITE_FORBIDDEN EXTERNAL_URL_INVALID FILE_PARTS_INVALID FILE_PART_LENGTH_INVALID INPUT_USER_DEACTIVATED MEDIA_CAPTION_TOO_LONG MEDIA_EMPTY PAYMENT_PROVIDER_INVALID PEER_ID_INVALID PHOTO_EXT_INVALID PHOTO_INVALID_DIMENSIONS PHOTO_SAVE_FILE_INVALID POLL_OPTION_DUPLICATE RANDOM_ID_DUPLICATE SCHEDULE_DATE_TOO_LATE SCHEDULE_TOO_MUCH STORAGE_CHECK_FAILED Timeout USER_BANNED_IN_CHANNEL USER_IS_BLOCKED USER_IS_BOT VIDEO_CONTENT_TYPE_INVALID WEBPAGE_CURL_FAILED WEBPAGE_MEDIA_EMPTY
|
||||||
messages.sendMessage,both,AUTH_KEY_DUPLICATED BUTTON_DATA_INVALID BUTTON_TYPE_INVALID BUTTON_URL_INVALID CHANNEL_INVALID CHANNEL_PRIVATE CHAT_ADMIN_REQUIRED CHAT_ID_INVALID CHAT_RESTRICTED CHAT_WRITE_FORBIDDEN ENTITIES_TOO_LONG ENTITY_MENTION_USER_INVALID INPUT_USER_DEACTIVATED MESSAGE_EMPTY MESSAGE_TOO_LONG PEER_ID_INVALID RANDOM_ID_DUPLICATE REPLY_MARKUP_INVALID REPLY_MARKUP_TOO_LONG Timeout USER_BANNED_IN_CHANNEL USER_IS_BLOCKED USER_IS_BOT YOU_BLOCKED_USER
|
messages.sendMessage,both,AUTH_KEY_DUPLICATED BUTTON_DATA_INVALID BUTTON_TYPE_INVALID BUTTON_URL_INVALID CHANNEL_INVALID CHANNEL_PRIVATE CHAT_ADMIN_REQUIRED CHAT_ID_INVALID CHAT_RESTRICTED CHAT_WRITE_FORBIDDEN ENTITIES_TOO_LONG ENTITY_MENTION_USER_INVALID INPUT_USER_DEACTIVATED MESSAGE_EMPTY MESSAGE_TOO_LONG PEER_ID_INVALID RANDOM_ID_DUPLICATE REPLY_MARKUP_INVALID REPLY_MARKUP_TOO_LONG SCHEDULE_DATE_TOO_LATE SCHEDULE_TOO_MUCH Timeout USER_BANNED_IN_CHANNEL USER_IS_BLOCKED USER_IS_BOT YOU_BLOCKED_USER
|
||||||
messages.sendMultiMedia,both,
|
messages.sendMultiMedia,both,SCHEDULE_DATE_TOO_LATE SCHEDULE_TOO_MUCH
|
||||||
|
messages.sendReaction,User,REACTION_INVALID
|
||||||
messages.sendVote,user,
|
messages.sendVote,user,
|
||||||
messages.setBotCallbackAnswer,both,QUERY_ID_INVALID URL_INVALID
|
messages.setBotCallbackAnswer,both,QUERY_ID_INVALID URL_INVALID
|
||||||
messages.setBotPrecheckoutResults,both,ERROR_TEXT_EMPTY
|
messages.setBotPrecheckoutResults,both,ERROR_TEXT_EMPTY
|
||||||
|
|
|
Loading…
Reference in New Issue
Block a user