mirror of
https://github.com/pyrogram/pyrogram
synced 2025-09-01 14:55:12 +00:00
Merge branch 'develop' into inline-mode
# Conflicts: # compiler/api/compiler.py # compiler/error/source/400_BAD_REQUEST.tsv # pyrogram/__init__.py # pyrogram/client/dispatcher/dispatcher.py # pyrogram/client/ext/utils.py # pyrogram/client/methods/bots/__init__.py # pyrogram/client/types/__init__.py
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
# Pyrogram - Telegram MTProto API Client Library for Python
|
||||
# Copyright (C) 2017-2018 Dan Tès <https://github.com/delivrance>
|
||||
# Copyright (C) 2017-2019 Dan Tès <https://github.com/delivrance>
|
||||
#
|
||||
# This file is part of Pyrogram.
|
||||
#
|
||||
|
@@ -1,5 +1,5 @@
|
||||
# Pyrogram - Telegram MTProto API Client Library for Python
|
||||
# Copyright (C) 2017-2018 Dan Tès <https://github.com/delivrance>
|
||||
# Copyright (C) 2017-2019 Dan Tès <https://github.com/delivrance>
|
||||
#
|
||||
# This file is part of Pyrogram.
|
||||
#
|
||||
@@ -73,7 +73,7 @@ def start():
|
||||
f_init.write("from .{}_{} import *\n".format(name.lower(), code))
|
||||
|
||||
with open("{}/source/{}".format(HOME, i), encoding="utf-8") as f_csv, \
|
||||
open("{}/{}_{}.py".format(DEST, name.lower(), code), "w", encoding="utf-8") as f_class:
|
||||
open("{}/{}_{}.py".format(DEST, name.lower(), code), "w", encoding="utf-8") as f_class:
|
||||
reader = csv.reader(f_csv, delimiter="\t")
|
||||
|
||||
super_class = caml(name)
|
||||
|
@@ -51,7 +51,7 @@ BOT_INLINE_DISABLED The inline feature of the bot is disabled
|
||||
INLINE_RESULT_EXPIRED The inline bot query expired
|
||||
INVITE_HASH_INVALID The invite link hash is invalid
|
||||
USER_ALREADY_PARTICIPANT The user is already a participant of this chat
|
||||
TTL_MEDIA_INVALID This kind of media does not support self-destruction
|
||||
TTL_MEDIA_INVALID The media does not support self-destruction
|
||||
MAX_ID_INVALID The max_id parameter is invalid
|
||||
CHANNEL_INVALID The channel parameter is invalid
|
||||
DC_ID_INVALID The dc_id parameter is invalid
|
||||
@@ -59,15 +59,40 @@ LIMIT_INVALID The limit parameter is invalid
|
||||
OFFSET_INVALID The offset parameter is invalid
|
||||
EMAIL_INVALID The email provided is invalid
|
||||
USER_IS_BOT A bot cannot send messages to other bots or to itself
|
||||
WEBPAGE_CURL_FAILED Telegram could not fetch the provided URL
|
||||
WEBPAGE_CURL_FAILED Telegram server could not fetch the provided URL
|
||||
STICKERSET_INVALID The requested sticker set is invalid
|
||||
PEER_FLOOD The method can't be used because your account is limited
|
||||
MEDIA_CAPTION_TOO_LONG The media caption is longer than 200 characters
|
||||
MEDIA_CAPTION_TOO_LONG The media caption is longer than 1024 characters
|
||||
USER_NOT_MUTUAL_CONTACT The user is not a mutual contact
|
||||
USER_CHANNELS_TOO_MUCH The user is already in too many channels or supergroups
|
||||
API_ID_PUBLISHED_FLOOD You are using an API key that is limited on the server side
|
||||
USER_NOT_PARTICIPANT The user is not a member of this chat
|
||||
CHANNEL_PRIVATE The channel/supergroup is not accessible
|
||||
MESSAGE_IDS_EMPTY The requested message doesn't exist
|
||||
WEBPAGE_MEDIA_EMPTY The URL doesn't contain any valid media
|
||||
QUERY_ID_INVALID The callback query id is invalid
|
||||
MEDIA_EMPTY The media is invalid
|
||||
USER_IS_BLOCKED The user blocked you
|
||||
YOU_BLOCKED_USER You blocked this user
|
||||
ADMINS_TOO_MUCH The chat has too many administrators
|
||||
BOTS_TOO_MUCH The chat has too many bots
|
||||
USER_ADMIN_INVALID The action requires admin privileges
|
||||
INPUT_USER_DEACTIVATED The target user has been deactivated
|
||||
PASSWORD_RECOVERY_NA The password recovery e-mail is not available
|
||||
PASSWORD_EMPTY The password entered is empty
|
||||
PHONE_NUMBER_FLOOD This number has tried to login too many times
|
||||
TAKEOUT_INVALID The takeout id is invalid
|
||||
TAKEOUT_REQUIRED The method must be invoked inside a takeout session
|
||||
MESSAGE_POLL_CLOSED You can't interact with a closed poll
|
||||
MEDIA_INVALID The media is invalid
|
||||
BOT_SCORE_NOT_MODIFIED The bot score was not modified
|
||||
USER_BOT_REQUIRED The method can be used by bots only
|
||||
IMAGE_PROCESS_FAILED The server failed to process your image
|
||||
USERNAME_NOT_MODIFIED The username was not modified
|
||||
CALL_ALREADY_ACCEPTED The call is already accepted
|
||||
CALL_ALREADY_DECLINED The call is already declined
|
||||
PHOTO_EXT_INVALID The photo extension is invalid
|
||||
EXTERNAL_URL_INVALID The external media URL is invalid
|
||||
CHAT_NOT_MODIFIED The chat settings were not modified
|
||||
RESULTS_TOO_MUCH The result contains too many items
|
||||
RESULT_ID_DUPLICATE The result contains items with duplicated identifiers
|
|
@@ -1,2 +1,3 @@
|
||||
id message
|
||||
AUTH_KEY_DUPLICATED Authorization error. You must log out and log in again with your phone number. We apologize for the inconvenience.
|
||||
AUTH_KEY_DUPLICATED Authorization error - you must delete your session file and log in again with your phone number
|
||||
FILEREF_UPGRADE_NEEDED The file reference has expired - you must obtain the original media message
|
|
@@ -1,2 +1,3 @@
|
||||
id message
|
||||
FLOOD_WAIT_X A wait of {x} seconds is required
|
||||
TAKEOUT_INIT_DELAY_X You have to confirm the data export request using one of your mobile devices or wait {x} seconds
|
||||
|
|
@@ -4,4 +4,5 @@ RPC_CALL_FAIL Telegram is having internal problems. Please try again later
|
||||
RPC_MCGET_FAIL Telegram is having internal problems. Please try again later
|
||||
PERSISTENT_TIMESTAMP_OUTDATED Telegram is having internal problems. Please try again later
|
||||
HISTORY_GET_FAILED Telegram is having internal problems. Please try again later
|
||||
REG_ID_GENERATE_FAILED Telegram is having internal problems. Please try again later
|
||||
REG_ID_GENERATE_FAILED Telegram is having internal problems. Please try again later
|
||||
RANDOM_ID_DUPLICATE Telegram is having internal problems. Please try again later
|
|
Reference in New Issue
Block a user