diff --git a/data/corefork.telegram.org/api/layers.html b/data/corefork.telegram.org/api/layers.html
index 47d3c7351d..a299e5ace6 100644
--- a/data/corefork.telegram.org/api/layers.html
+++ b/data/corefork.telegram.org/api/layers.html
@@ -65,6 +65,61 @@ Layer…">
Removed messageUserReaction
+ PUSH notification changes
+ New PUSH notifications
+
+ Changed PUSH notifications
+
+Changed template from {1} posted {2} files
to {1} posted {2}
in CHANNEL_MESSAGE_DOCS
+Changed template from {1} posted {2} forwarded messages
to {1} posted {2}
in CHANNEL_MESSAGE_FWDS
+Changed template from {1} posted {2} photos
to {1} posted {2}
in CHANNEL_MESSAGE_PHOTOS
+Changed template from {1} posted {2} music files
to {1} posted {2}
in CHANNEL_MESSAGE_PLAYLIST
+Changed template from {1} posted {2} videos
to {1} posted {2}
in CHANNEL_MESSAGE_VIDEOS
+Changed template from {1} sent {3} files to the group {2}
to {1} sent {3} to the group {2}
in CHAT_MESSAGE_DOCS
+Changed template from {1} forwarded {3} messages to the group {2}
to {1} forwarded {3} to the group {2}
in CHAT_MESSAGE_FWDS
+Changed template from {1} sent {3} photos to the group {2}
to {1} sent {3} to the group {2}
in CHAT_MESSAGE_PHOTOS
+Changed template from {1} sent {3} music files to the group {2}
to {1} sent {3} to the group {2}
in CHAT_MESSAGE_PLAYLIST
+Changed template from {1} sent {3} videos to the group {2}
to {1} sent {3} to the group {2}
in CHAT_MESSAGE_VIDEOS
+Changed template from {1} sent you {2} files
to {1} sent you {2}
in MESSAGE_DOCS
+Changed template from {1} forwarded you {2} messages
to {1} forwarded you {2}
in MESSAGE_FWDS
+Changed template from {1} sent you {2} photos
to {1} sent you {2}
in MESSAGE_PHOTOS
+Changed template from {1} sent you {2} music files
to {1} sent you {2}
in MESSAGE_PLAYLIST
+Changed template from {1} sent you {2} videos
to {1} sent you {2}
in MESSAGE_VIDEOS
+
Schema
dialog #a8edd0f5 flags:# pinned:flags.2?true unread_mark:flags.3?true peer:Peer top_message:int read_inbox_max_id:int read_outbox_max_id:int unread_count:int unread_mentions_count:int unread_reactions_count:int notify_settings:PeerNotifySettings pts:flags.0?int draft:flags.1?DraftMessage folder_id:flags.4?int = Dialog ;
messageReactions #4f2b9479 flags:# min:flags.0?true can_see_list:flags.2?true results:Vector <ReactionCount > recent_reactions:flags.1?Vector <MessagePeerReaction > = MessageReactions ;
diff --git a/data/corefork.telegram.org/api/push-updates.html b/data/corefork.telegram.org/api/push-updates.html
index 4e96c82bd4..3dd22d5001 100644
--- a/data/corefork.telegram.org/api/push-updates.html
+++ b/data/corefork.telegram.org/api/push-updates.html
@@ -193,13 +193,13 @@
CHANNEL_MESSAGE_DOCS
-{1} posted {2} files
+{1} posted {2}
1. Channel name 2. Number of documents that were posted
attachb64 : Base64-encoded version of the attached media (related to the first message)channel_id : Channel/supergroup identifier (related to the first message)chat_from_id : Groups only, message author identifier (related to the first message)edit_date : When was the message last edited (related to the first message)mention : Whether the user was mentioned in the message (related to the first message)msg_id : ID of the message (related to the first message)silent : Whether the message was posted silently (no notification should be issued) (related to the first message)
CHANNEL_MESSAGE_FWDS
-{1} posted {2} forwarded messages
+{1} posted {2}
1. Message author 2. Number of forwarded messages
attachb64 : Base64-encoded version of the attached media (related to the first message)channel_id : Channel/supergroup identifier (related to the first message)chat_from_id : Groups only, message author identifier (related to the first message)edit_date : When was the message last edited (related to the first message)mention : Whether the user was mentioned in the message (related to the first message)msg_id : ID of the message (related to the first message)silent : Whether the message was posted silently (no notification should be issued) (related to the first message)
@@ -247,13 +247,13 @@
CHANNEL_MESSAGE_PHOTOS
-{1} posted {2} photos
+{1} posted {2}
1. Channel name 2. Number of photos that was sent
attachb64 : Base64-encoded version of the attached media (related to the first message)channel_id : Channel/supergroup identifier (related to the first message)chat_from_id : Groups only, message author identifier (related to the first message)edit_date : When was the message last edited (related to the first message)mention : Whether the user was mentioned in the message (related to the first message)msg_id : ID of the message (related to the first message)silent : Whether the message was posted silently (no notification should be issued) (related to the first message)
CHANNEL_MESSAGE_PLAYLIST
-{1} posted {2} music files
+{1} posted {2}
1. Channel name 2. Number of audio files that were posted
attachb64 : Base64-encoded version of the attached mediachannel_id : Channel/supergroup identifierchat_from_id : Groups only, message author identifieredit_date : When was the message last editedmention : Whether the user was mentioned in the messagemsg_id : ID of the messagesilent : Whether the message was posted silently (no notification should be issued)
@@ -295,7 +295,7 @@
CHANNEL_MESSAGE_VIDEOS
-{1} posted {2} videos
+{1} posted {2}
1. Channel name 2. Number of videos that were posted
attachb64 : Base64-encoded version of the attached media (related to the first message)channel_id : Channel/supergroup identifier (related to the first message)chat_from_id : Groups only, message author identifier (related to the first message)edit_date : When was the message last edited (related to the first message)mention : Whether the user was mentioned in the message (related to the first message)msg_id : ID of the message (related to the first message)silent : Whether the message was posted silently (no notification should be issued) (related to the first message)
@@ -367,13 +367,13 @@
CHAT_MESSAGE_DOCS
-{1} sent {3} files to the group {2}
+{1} sent {3} to the group {2}
1. User name 2. Group name 3. Number of documents that were sent
attachb64 : Base64-encoded version of the attached media (related to the first message)chat_from_id : Groups only, message author identifier (related to the first message)chat_id : Chat identifier (related to the first message)edit_date : When was the message last edited (related to the first message)mention : Whether the user was mentioned in the message (related to the first message)msg_id : ID of the message (related to the first message)silent : Whether the message was posted silently (no notification should be issued) (related to the first message)
CHAT_MESSAGE_FWDS
-{1} forwarded {3} messages to the group {2}
+{1} forwarded {3} to the group {2}
1. User name 2. Group name 3. Number of messages that were forwarded
attachb64 : Base64-encoded version of the attached media (related to the first message)chat_from_id : Groups only, message author identifier (related to the first message)chat_id : Chat identifier (related to the first message)edit_date : When was the message last edited (related to the first message)mention : Whether the user was mentioned in the message (related to the first message)msg_id : ID of the message (related to the first message)silent : Whether the message was posted silently (no notification should be issued) (related to the first message)
@@ -427,13 +427,13 @@
CHAT_MESSAGE_PHOTOS
-{1} sent {3} photos to the group {2}
+{1} sent {3} to the group {2}
1. User name 2. Group name 3. Number of photos that were sent
attachb64 : Base64-encoded version of the attached media (related to the first message)chat_from_id : Groups only, message author identifier (related to the first message)chat_id : Chat identifier (related to the first message)edit_date : When was the message last edited (related to the first message)mention : Whether the user was mentioned in the message (related to the first message)msg_id : ID of the message (related to the first message)silent : Whether the message was posted silently (no notification should be issued) (related to the first message)
CHAT_MESSAGE_PLAYLIST
-{1} sent {3} music files to the group {2}
+{1} sent {3} to the group {2}
1. User name 2. Group name 3. Number of audio files that were sent
attachb64 : Base64-encoded version of the attached mediachat_from_id : Groups only, message author identifierchat_id : Chat identifieredit_date : When was the message last editedmention : Whether the user was mentioned in the messagemsg_id : ID of the messagesilent : Whether the message was posted silently (no notification should be issued)
@@ -475,7 +475,7 @@
CHAT_MESSAGE_VIDEOS
-{1} sent {3} videos to the group {2}
+{1} sent {3} to the group {2}
1. User name 2. Group name 3. Number of videos that were sent
attachb64 : Base64-encoded version of the attached media (related to the first message)chat_from_id : Groups only, message author identifier (related to the first message)chat_id : Chat identifier (related to the first message)edit_date : When was the message last edited (related to the first message)mention : Whether the user was mentioned in the message (related to the first message)msg_id : ID of the message (related to the first message)silent : Whether the message was posted silently (no notification should be issued) (related to the first message)
@@ -486,6 +486,108 @@
chat_from_id : Message author identifierchat_id : chat identifiermsg_id : ID of the message
+CHAT_REACT_AUDIO
+{1}: {3} to your voice message in {2}
+1. 2. 3.
+
+
+
+CHAT_REACT_CONTACT
+{1}: {3} to your contact {4} in {2}
+1. 2. 3. 4.
+
+
+
+CHAT_REACT_DOC
+{1}: {3} to your file in {2}
+1. 2. 3.
+
+
+
+CHAT_REACT_GAME
+{1}: {3} to your game in {2}
+1. 2. 3.
+
+
+
+CHAT_REACT_GEO
+{1}: {3} to your map in {2}
+1. 2. 3.
+
+
+
+CHAT_REACT_GEOLIVE
+{1}: {3} to your live location in {2}
+1. 2. 3.
+
+
+
+CHAT_REACT_GIF
+{1}: {3} to your GIF in {2}
+1. 2. 3.
+
+
+
+CHAT_REACT_INVOICE
+{1}: {3} to your invoice in {2}
+1. 2. 3.
+
+
+
+CHAT_REACT_NOTEXT
+{1}: {3} to your message in {2}
+1. 2. 3.
+
+
+
+CHAT_REACT_PHOTO
+{1}: {3} to your photo in {2}
+1. 2. 3.
+
+
+
+CHAT_REACT_POLL
+{1}: {3} to your poll {4} in {2}
+1. 2. 3. 4.
+
+
+
+CHAT_REACT_QUIZ
+{1}: {3} to your quiz {4} in {2}
+1. 2. 3. 4.
+
+
+
+CHAT_REACT_ROUND
+{1}: {3} to your video message in {2}
+1. 2. 3.
+
+
+
+CHAT_REACT_STICKER
+{1}: {3} to your {4} sticker in {2}
+1. 2. 3. 4.
+
+
+
+CHAT_REACT_TEXT
+{1}: {3} in {2} to your "{4}"
+1. 2. 3. 4.
+
+
+
+CHAT_REACT_VIDEO
+{1}: {3} to your video in {2}
+1. 2. 3.
+
+
+
+CHAT_REQ_JOINED
+{2}
+{1} was accepted into the group
+1. 2.
+
+
CHAT_RETURNED
{1} returned to the group {2}
1. Message author 2. Chat name
@@ -583,13 +685,13 @@
MESSAGE_DOCS
-{1} sent you {2} files
+{1} sent you {2}
1. User name 2. Number of documents that were sent
attachb64 : Base64-encoded version of the attached media (related to the first message)chat_from_id : Groups only, message author identifier (related to the first message)edit_date : When was the message last edited (related to the first message)from_id : Author identifier (related to the first message)mention : Whether the user was mentioned in the message (related to the first message)msg_id : ID of the message (related to the first message)silent : Whether the message was posted silently (no notification should be issued) (related to the first message)
MESSAGE_FWDS
-{1} forwarded you {2} messages
+{1} forwarded you {2}
1. User name 2. Number of messages that were forwarded
attachb64 : Base64-encoded version of the attached media (related to the first message)chat_from_id : Groups only, message author identifier (related to the first message)edit_date : When was the message last edited (related to the first message)from_id : Author identifier (related to the first message)mention : Whether the user was mentioned in the message (related to the first message)msg_id : ID of the message (related to the first message)silent : Whether the message was posted silently (no notification should be issued) (related to the first message)
@@ -643,7 +745,7 @@
MESSAGE_PHOTOS
-{1} sent you {2} photos
+{1} sent you {2}
1. User name 2. Number of photos that were sent
attachb64 : Base64-encoded version of the attached media (related to the first message)chat_from_id : Groups only, message author identifier (related to the first message)edit_date : When was the message last edited (related to the first message)from_id : Author identifier (related to the first message)mention : Whether the user was mentioned in the message (related to the first message)msg_id : ID of the message (related to the first message)silent : Whether the message was posted silently (no notification should be issued) (related to the first message)
@@ -655,7 +757,7 @@
MESSAGE_PLAYLIST
-{1} sent you {2} music files
+{1} sent you {2}
1. User name 2. Number of audio files that were sent
attachb64 : Base64-encoded version of the attached mediachat_from_id : Groups only, message author identifieredit_date : When was the message last editedfrom_id : Author identifiermention : Whether the user was mentioned in the messagemsg_id : ID of the messagesilent : Whether the message was posted silently (no notification should be issued)
@@ -703,7 +805,7 @@
MESSAGE_VIDEOS
-{1} sent you {2} videos
+{1} sent you {2}
1. User name 2. Number of videos that were sent
attachb64 : Base64-encoded version of the attached media (related to the first message)chat_from_id : Groups only, message author identifier (related to the first message)edit_date : When was the message last edited (related to the first message)from_id : Author identifier (related to the first message)mention : Whether the user was mentioned in the message (related to the first message)msg_id : ID of the message (related to the first message)silent : Whether the message was posted silently (no notification should be issued) (related to the first message)
@@ -929,6 +1031,102 @@
1. User name 2. Group name
attachb64 : Base64-encoded version of the attached mediachannel_id : For channels and supergroups , Channel/supergroup identifierchat_from_id : Groups only, message author identifierchat_id : For chats , Chat identifieredit_date : When was the message last editedfrom_id : For PMs, Author identifiermention : Whether the user was mentioned in the messagemsg_id : ID of the messagesilent : Whether the message was posted silently (no notification should be issued)
+
+REACT_AUDIO
+{1}: {2} to your voice message
+1. 2.
+
+
+
+REACT_CONTACT
+{1}: {2} to your contact {3}
+1. 2. 3.
+
+
+
+REACT_DOC
+{1}: {2} to your file
+1. 2.
+
+
+
+REACT_GAME
+{1}: {2} to your game
+1. 2.
+
+
+
+REACT_GEO
+{1}: {2} to your map
+1. 2.
+
+
+
+REACT_GEOLIVE
+{1}: {2} to your live location
+1. 2.
+
+
+
+REACT_GIF
+{1}: {2} to your GIF
+1. 2.
+
+
+
+REACT_INVOICE
+{1}: {2} to your invoice
+1. 2.
+
+
+
+REACT_NOTEXT
+{1}: {2} to your message
+1. 2.
+
+
+
+REACT_PHOTO
+{1}: {2} to your photo
+1. 2.
+
+
+
+REACT_POLL
+{1}: {2} to your poll {3}
+1. 2. 3.
+
+
+
+REACT_QUIZ
+{1}: {2} to your quiz {3}
+1. 2. 3.
+
+
+
+REACT_ROUND
+{1}: {2} to your video message
+1. 2.
+
+
+
+REACT_STICKER
+{1}: {2} to your {3} sticker
+1. 2. 3.
+
+
+
+REACT_TEXT
+{1}: {2} to your "{3}"
+1. 2. 3.
+
+
+
+REACT_VIDEO
+{1}: {2} to your video
+1. 2.
+
+
diff --git a/data/corefork.telegram.org/method/account.changeAuthorizationSettings b/data/corefork.telegram.org/method/account.changeAuthorizationSettings
index 5afc64e86a..8fe9db5e9e 100644
--- a/data/corefork.telegram.org/method/account.changeAuthorizationSettings
+++ b/data/corefork.telegram.org/method/account.changeAuthorizationSettings
@@ -111,6 +111,23 @@ flags.0?Bool…">
Result
Bool
+ Possible errors
+
+
+
+Code
+Type
+Description
+
+
+
+
+400
+HASH_INVALID
+The provided hash is invalid.
+
+
+
Bots can use this method
diff --git a/data/corefork.telegram.org/method/account.changePhone b/data/corefork.telegram.org/method/account.changePhone
index 72ff282be4..8851f189e5 100644
--- a/data/corefork.telegram.org/method/account.changePhone
+++ b/data/corefork.telegram.org/method/account.changePhone
@@ -103,10 +103,10 @@
400
PHONE_CODE_EXPIRED
-The phone code you provided has expired, this may happen if it was sent to any chat on telegram (if the code is sent through a telegram chat (not the official account) to avoid it append or prepend to the code some chars).
+The phone code you provided has expired.
-400
+406
PHONE_NUMBER_INVALID
The phone number is invalid.
diff --git a/data/corefork.telegram.org/method/account.checkUsername b/data/corefork.telegram.org/method/account.checkUsername
index 02baa76e54..6396d5b158 100644
--- a/data/corefork.telegram.org/method/account.checkUsername
+++ b/data/corefork.telegram.org/method/account.checkUsername
@@ -88,7 +88,7 @@
400
USERNAME_INVALID
-Unacceptable username.
+The provided username is not valid.
diff --git a/data/corefork.telegram.org/method/account.deleteAccount b/data/corefork.telegram.org/method/account.deleteAccount
index 68e5e921d4..0ab954b8c3 100644
--- a/data/corefork.telegram.org/method/account.deleteAccount
+++ b/data/corefork.telegram.org/method/account.deleteAccount
@@ -87,8 +87,8 @@
420
-2FA_CONFIRM_WAIT_X
-Since this account is active and protected by a 2FA password, we will delete it in 1 week for security purposes. You can cancel this process at any time, you'll be able to reset your account in X seconds.
+2FA_CONFIRM_WAIT_%d
+Since this account is active and protected by a 2FA password, we will delete it in 1 week for security purposes. You can cancel this process at any time, you'll be able to reset your account in %d seconds.
diff --git a/data/corefork.telegram.org/method/account.initTakeoutSession b/data/corefork.telegram.org/method/account.initTakeoutSession
index bb18dc66d8..b4ada1fbef 100644
--- a/data/corefork.telegram.org/method/account.initTakeoutSession
+++ b/data/corefork.telegram.org/method/account.initTakeoutSession
@@ -121,8 +121,8 @@
420
-TAKEOUT_INIT_DELAY_X
-Wait X seconds before initing takeout.
+TAKEOUT_INIT_DELAY_%d
+Wait %d seconds before initing takeout.
diff --git a/data/corefork.telegram.org/method/account.sendChangePhoneCode b/data/corefork.telegram.org/method/account.sendChangePhoneCode
index 1d52080119..b4dca5496b 100644
--- a/data/corefork.telegram.org/method/account.sendChangePhoneCode
+++ b/data/corefork.telegram.org/method/account.sendChangePhoneCode
@@ -100,7 +100,7 @@
The provided phone number is banned from telegram.
-400
+406
PHONE_NUMBER_INVALID
The phone number is invalid.
diff --git a/data/corefork.telegram.org/method/account.setAuthorizationTTL b/data/corefork.telegram.org/method/account.setAuthorizationTTL
index 579c583637..c1e4bc1472 100644
--- a/data/corefork.telegram.org/method/account.setAuthorizationTTL
+++ b/data/corefork.telegram.org/method/account.setAuthorizationTTL
@@ -13,7 +13,12 @@ int
Result
Bool
-Bots can use this method">
+Possible errors
+Code
+Type
+Description
+406
+FR…">
+Possible errors
+Code
+Type
+Description
+406
+FR…">
@@ -92,6 +102,23 @@ Bots can use this method">
Result
Bool
+ Possible errors
+
+
+
+Code
+Type
+Description
+
+
+
+
+406
+FRESH_RESET_AUTHORISATION_FORBIDDEN
+You can't logout other sessions if less than 24 hours have passed since you logged on the current session.
+
+
+
Bots can use this method
diff --git a/data/corefork.telegram.org/method/account.updatePasswordSettings b/data/corefork.telegram.org/method/account.updatePasswordSettings
index 601cf2c385..6cfa5d8a4e 100644
--- a/data/corefork.telegram.org/method/account.updatePasswordSettings
+++ b/data/corefork.telegram.org/method/account.updatePasswordSettings
@@ -92,13 +92,13 @@
400
-EMAIL_UNCONFIRMED
-Email unconfirmed.
+EMAIL_UNCONFIRMED_%d
+The provided email isn't confirmed, X is the length of the verification code that was just sent to the email: use account.verifyEmail to enter the received verification code and enable the recovery email.
400
-EMAIL_UNCONFIRMED_X
-The provided email isn't confirmed, X is the length of the verification code that was just sent to the email: use account.verifyEmail to enter the received verification code and enable the recovery email.
+EMAIL_UNCONFIRMED
+Email unconfirmed.
400
@@ -113,7 +113,7 @@
400
PASSWORD_HASH_INVALID
-The old password hash is invalid.
+The provided password hash is invalid.
400
@@ -129,9 +129,7 @@
Related pages
-How to login to a user's account if they have enabled 2FA, how to change password.
-
-Verify an email address for telegram passport .
+How to login to a user's account if they have enabled 2FA, how to change password.
diff --git a/data/corefork.telegram.org/method/account.updateUsername b/data/corefork.telegram.org/method/account.updateUsername
index f41e55faea..94c247cbef 100644
--- a/data/corefork.telegram.org/method/account.updateUsername
+++ b/data/corefork.telegram.org/method/account.updateUsername
@@ -93,17 +93,17 @@
400
USERNAME_INVALID
-Unacceptable username.
+The provided username is not valid.
400
USERNAME_NOT_MODIFIED
-Username is not different from the current username.
+The username was not modified.
400
USERNAME_OCCUPIED
-Username is taken.
+The provided username is already occupied.
diff --git a/data/corefork.telegram.org/method/account.verifyPhone b/data/corefork.telegram.org/method/account.verifyPhone
index 6680e54e99..8f3d14d458 100644
--- a/data/corefork.telegram.org/method/account.verifyPhone
+++ b/data/corefork.telegram.org/method/account.verifyPhone
@@ -103,7 +103,7 @@
400
PHONE_CODE_EXPIRED
-The phone code you provided has expired, this may happen if it was sent to any chat on telegram (if the code is sent through a telegram chat (not the official account) to avoid it append or prepend to the code some chars).
+The phone code you provided has expired.
400
diff --git a/data/corefork.telegram.org/method/auth.acceptLoginToken b/data/corefork.telegram.org/method/auth.acceptLoginToken
index 902218580c..ee51424851 100644
--- a/data/corefork.telegram.org/method/auth.acceptLoginToken
+++ b/data/corefork.telegram.org/method/auth.acceptLoginToken
@@ -88,6 +88,11 @@
400
+AUTH_TOKEN_EXPIRED
+The authorization token has expired.
+
+
+400
AUTH_TOKEN_INVALIDX
The specified auth token is invalid.
diff --git a/data/corefork.telegram.org/method/auth.bindTempAuthKey b/data/corefork.telegram.org/method/auth.bindTempAuthKey
index f33ff26ada..ef7f0a0843 100644
--- a/data/corefork.telegram.org/method/auth.bindTempAuthKey
+++ b/data/corefork.telegram.org/method/auth.bindTempAuthKey
@@ -104,7 +104,7 @@
400
ENCRYPTED_MESSAGE_INVALID
-Encrypted message is incorrect.
+Encrypted message invalid.
400
@@ -114,7 +114,7 @@
400
TEMP_AUTH_KEY_EMPTY
-The request was not performed with a temporary authorization key.
+No temporary auth key provided.
diff --git a/data/corefork.telegram.org/method/auth.cancelCode b/data/corefork.telegram.org/method/auth.cancelCode
index 5401d85744..aafc881185 100644
--- a/data/corefork.telegram.org/method/auth.cancelCode
+++ b/data/corefork.telegram.org/method/auth.cancelCode
@@ -93,10 +93,10 @@
400
PHONE_CODE_EXPIRED
-The phone code you provided has expired, this may happen if it was sent to any chat on telegram (if the code is sent through a telegram chat (not the official account) to avoid it append or prepend to the code some chars).
+The phone code you provided has expired.
-400
+406
PHONE_NUMBER_INVALID
The phone number is invalid.
diff --git a/data/corefork.telegram.org/method/auth.checkPassword b/data/corefork.telegram.org/method/auth.checkPassword
index e0e48b6aec..606aaef51d 100644
--- a/data/corefork.telegram.org/method/auth.checkPassword
+++ b/data/corefork.telegram.org/method/auth.checkPassword
@@ -88,7 +88,7 @@
400
PASSWORD_HASH_INVALID
-The provided password isn't valid.
+The provided password hash is invalid.
400
diff --git a/data/corefork.telegram.org/method/auth.importBotAuthorization b/data/corefork.telegram.org/method/auth.importBotAuthorization
index b8dfcbdbbb..c60788916f 100644
--- a/data/corefork.telegram.org/method/auth.importBotAuthorization
+++ b/data/corefork.telegram.org/method/auth.importBotAuthorization
@@ -103,28 +103,23 @@
400
ACCESS_TOKEN_EXPIRED
-Bot token expired.
+Access token expired.
400
ACCESS_TOKEN_INVALID
-The provided token is not valid.
+Access token invalid.
400
API_ID_INVALID
-The api_id/api_hash combination is invalid.
+API ID invalid.
400
API_ID_PUBLISHED_FLOOD
This API id was published somewhere, you can't use it now.
-
-401
-AUTH_KEY_INVALID
-Auth key invalid.
-
Bots can use this method
diff --git a/data/corefork.telegram.org/method/auth.recoverPassword b/data/corefork.telegram.org/method/auth.recoverPassword
index 5069ad08fc..a07a7d2fe7 100644
--- a/data/corefork.telegram.org/method/auth.recoverPassword
+++ b/data/corefork.telegram.org/method/auth.recoverPassword
@@ -103,7 +103,7 @@
400
NEW_SETTINGS_INVALID
-The new settings are invalid.
+The new password settings are invalid.
diff --git a/data/corefork.telegram.org/method/auth.resendCode b/data/corefork.telegram.org/method/auth.resendCode
index 1d973de583..7f15364bda 100644
--- a/data/corefork.telegram.org/method/auth.resendCode
+++ b/data/corefork.telegram.org/method/auth.resendCode
@@ -92,7 +92,7 @@
400
PHONE_CODE_EXPIRED
-The phone code you provided has expired, this may happen if it was sent to any chat on telegram (if the code is sent through a telegram chat (not the official account) to avoid it append or prepend to the code some chars).
+The phone code you provided has expired.
400
@@ -100,7 +100,7 @@
phone_code_hash is missing.
-400
+406
PHONE_NUMBER_INVALID
The phone number is invalid.
diff --git a/data/corefork.telegram.org/method/auth.sendCode b/data/corefork.telegram.org/method/auth.sendCode
index 90b22a31cb..bc76df7213 100644
--- a/data/corefork.telegram.org/method/auth.sendCode
+++ b/data/corefork.telegram.org/method/auth.sendCode
@@ -115,16 +115,6 @@
The temporary auth key must be binded to the permanent auth key to use these methods.
-303
-NETWORK_MIGRATE_X
-Repeat the query to data-center X.
-
-
-303
-PHONE_MIGRATE_X
-Repeat the query to data-center X.
-
-
400
PHONE_NUMBER_APP_SIGNUP_FORBIDDEN
You can't sign up using this app.
@@ -140,9 +130,9 @@
You asked for the code too many times.
-400
+406
PHONE_NUMBER_INVALID
-Invalid phone number.
+The phone number is invalid.
406
diff --git a/data/corefork.telegram.org/method/auth.signIn b/data/corefork.telegram.org/method/auth.signIn
index 6c753a9c48..af3a9c31af 100644
--- a/data/corefork.telegram.org/method/auth.signIn
+++ b/data/corefork.telegram.org/method/auth.signIn
@@ -98,32 +98,27 @@
400
PHONE_CODE_EMPTY
-phone_code from the SMS is empty.
+phone_code is missing.
400
PHONE_CODE_EXPIRED
-SMS expired.
+The phone code you provided has expired.
400
PHONE_CODE_INVALID
-Invalid SMS code was sent.
+The provided phone code is invalid.
-400
+406
PHONE_NUMBER_INVALID
-Invalid phone number.
+The phone number is invalid.
400
PHONE_NUMBER_UNOCCUPIED
-The code is valid but no user with the given number is registered.
-
-
-406
-UPDATE_APP_TO_LOGIN
-Please update to the latest version of MadelineProto to login.
+The phone number is not yet being used.
diff --git a/data/corefork.telegram.org/method/auth.signUp b/data/corefork.telegram.org/method/auth.signUp
index e509e0c68a..72bbaf6c4a 100644
--- a/data/corefork.telegram.org/method/auth.signUp
+++ b/data/corefork.telegram.org/method/auth.signUp
@@ -103,27 +103,27 @@
400
FIRSTNAME_INVALID
-Invalid first name.
+The first name is invalid.
400
LASTNAME_INVALID
-Invalid last name.
+The last name is invalid.
400
PHONE_CODE_EMPTY
-phone_code from a SMS is empty.
+phone_code is missing.
400
PHONE_CODE_EXPIRED
-SMS expired.
+The phone code you provided has expired.
400
PHONE_CODE_INVALID
-Invalid SMS code was sent.
+The provided phone code is invalid.
400
@@ -131,9 +131,9 @@
You asked for the code too many times.
-400
+406
PHONE_NUMBER_INVALID
-Invalid phone number.
+The phone number is invalid.
400
diff --git a/data/corefork.telegram.org/method/bots.answerWebhookJSONQuery b/data/corefork.telegram.org/method/bots.answerWebhookJSONQuery
index 49ae27a1b9..9cc5a28720 100644
--- a/data/corefork.telegram.org/method/bots.answerWebhookJSONQuery
+++ b/data/corefork.telegram.org/method/bots.answerWebhookJSONQuery
@@ -96,7 +96,7 @@
The query ID is invalid.
-400
+403
USER_BOT_INVALID
This method can only be called by a bot.
diff --git a/data/corefork.telegram.org/method/bots.sendCustomRequest b/data/corefork.telegram.org/method/bots.sendCustomRequest
index 9ded1e2c9c..e2723cbac1 100644
--- a/data/corefork.telegram.org/method/bots.sendCustomRequest
+++ b/data/corefork.telegram.org/method/bots.sendCustomRequest
@@ -95,7 +95,7 @@
The specified method is invalid.
-400
+403
USER_BOT_INVALID
This method can only be called by a bot.
diff --git a/data/corefork.telegram.org/method/channels.convertToGigagroup b/data/corefork.telegram.org/method/channels.convertToGigagroup
index 18703b86a1..9e512ee00b 100644
--- a/data/corefork.telegram.org/method/channels.convertToGigagroup
+++ b/data/corefork.telegram.org/method/channels.convertToGigagroup
@@ -92,6 +92,11 @@
400
+CHAT_ADMIN_REQUIRED
+You must be an admin in this chat to do this.
+
+
+400
PARTICIPANTS_TOO_FEW
Not enough participants.
diff --git a/data/corefork.telegram.org/method/channels.createChannel b/data/corefork.telegram.org/method/channels.createChannel
index 596a35b07b..f4a70c6d63 100644
--- a/data/corefork.telegram.org/method/channels.createChannel
+++ b/data/corefork.telegram.org/method/channels.createChannel
@@ -146,7 +146,7 @@
No chat title provided.
-403
+406
USER_RESTRICTED
You're spamreported, you can't create channels or chats.
diff --git a/data/corefork.telegram.org/method/channels.deleteChannel b/data/corefork.telegram.org/method/channels.deleteChannel
index 70ecf52caa..abaef26dac 100644
--- a/data/corefork.telegram.org/method/channels.deleteChannel
+++ b/data/corefork.telegram.org/method/channels.deleteChannel
@@ -101,7 +101,7 @@
You haven't joined this channel/supergroup.
-400
+406
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).
diff --git a/data/corefork.telegram.org/method/channels.deleteParticipantHistory b/data/corefork.telegram.org/method/channels.deleteParticipantHistory
index f150c4e8c4..0ab558164d 100644
--- a/data/corefork.telegram.org/method/channels.deleteParticipantHistory
+++ b/data/corefork.telegram.org/method/channels.deleteParticipantHistory
@@ -16,7 +16,7 @@ InputPeer
Result
messages.AffectedHistory
-Bots can…">
+Possible…">
+Possible…">
@@ -102,6 +102,33 @@ Bots can…">
Result
messages.AffectedHistory
+ Possible errors
+
+
+
+Code
+Type
+Description
+
+
+
+
+400
+CHAT_ADMIN_REQUIRED
+You must be an admin in this chat to do this.
+
+
+400
+MSG_ID_INVALID
+Invalid message ID provided.
+
+
+400
+PARTICIPANT_ID_INVALID
+The specified participant ID is invalid.
+
+
+
Bots can use this method
diff --git a/data/corefork.telegram.org/method/channels.editAdmin b/data/corefork.telegram.org/method/channels.editAdmin
index a2796c284a..a9f7c1e676 100644
--- a/data/corefork.telegram.org/method/channels.editAdmin
+++ b/data/corefork.telegram.org/method/channels.editAdmin
@@ -206,7 +206,7 @@
The provided user ID is invalid.
-400
+403
USER_NOT_MUTUAL_CONTACT
The provided user is not a mutual contact.
diff --git a/data/corefork.telegram.org/method/channels.editCreator b/data/corefork.telegram.org/method/channels.editCreator
index 24fdcc49c9..17ba58c7d7 100644
--- a/data/corefork.telegram.org/method/channels.editCreator
+++ b/data/corefork.telegram.org/method/channels.editCreator
@@ -127,13 +127,13 @@
400
-PASSWORD_TOO_FRESH_X
-The password was modified less than 24 hours ago, try again in X seconds.
+PASSWORD_TOO_FRESH_%d
+The password was modified less than 24 hours ago, try again in %d seconds.
400
-SESSION_TOO_FRESH_X
-This session was created less than 24 hours ago, try again in X seconds.
+SESSION_TOO_FRESH_%d
+This session was created less than 24 hours ago, try again in %d seconds.
400
diff --git a/data/corefork.telegram.org/method/channels.getAdminedPublicChannels b/data/corefork.telegram.org/method/channels.getAdminedPublicChannels
index b01d157d67..2236c0cd1a 100644
--- a/data/corefork.telegram.org/method/channels.getAdminedPublicChannels
+++ b/data/corefork.telegram.org/method/channels.getAdminedPublicChannels
@@ -98,12 +98,12 @@
400
CHANNELS_ADMIN_LOCATED_TOO_MUCH
-Returned if both the check_limit
and the by_location
flags are set and the user has reached the limit of public geogroups.
+The user has reached the limit of public geogroups.
400
CHANNELS_ADMIN_PUBLIC_TOO_MUCH
-Returned if the check_limit
flag is set and the user has reached the limit of public channels/supergroups.
+You're admin of too many public channels, make some channels private to change the username of this channel.
diff --git a/data/corefork.telegram.org/method/channels.getChannels b/data/corefork.telegram.org/method/channels.getChannels
index 3ccc4f16d8..1fec70c7aa 100644
--- a/data/corefork.telegram.org/method/channels.getChannels
+++ b/data/corefork.telegram.org/method/channels.getChannels
@@ -100,6 +100,11 @@
MSG_ID_INVALID
Invalid message ID provided.
+
+400
+USER_BANNED_IN_CHANNEL
+You're banned from sending messages in supergroups/channels.
+
Bots can use this method
diff --git a/data/corefork.telegram.org/method/channels.getFullChannel b/data/corefork.telegram.org/method/channels.getFullChannel
index 06fe9485a6..3db491f821 100644
--- a/data/corefork.telegram.org/method/channels.getFullChannel
+++ b/data/corefork.telegram.org/method/channels.getFullChannel
@@ -90,7 +90,7 @@
The provided channel is invalid.
-400
+406
CHANNEL_PRIVATE
You haven't joined this channel/supergroup.
diff --git a/data/corefork.telegram.org/method/channels.getMessages b/data/corefork.telegram.org/method/channels.getMessages
index ab24f951a5..5c20a71085 100644
--- a/data/corefork.telegram.org/method/channels.getMessages
+++ b/data/corefork.telegram.org/method/channels.getMessages
@@ -112,6 +112,11 @@
MSG_ID_INVALID
Invalid message ID provided.
+
+400
+USER_BANNED_IN_CHANNEL
+You're banned from sending messages in supergroups/channels.
+
Bots can use this method
diff --git a/data/corefork.telegram.org/method/channels.getSendAs b/data/corefork.telegram.org/method/channels.getSendAs
index fd202656be..f2c80a1927 100644
--- a/data/corefork.telegram.org/method/channels.getSendAs
+++ b/data/corefork.telegram.org/method/channels.getSendAs
@@ -13,7 +13,11 @@ InputPeer
Result
channels.SendAsPeers
-Bots can use this method">
+Possible errors
+Code
+Type
+Description
+400…">
+Possible errors
+Code
+Type
+Description
+400…">
@@ -91,6 +99,23 @@ Bots can use this method">
Result
channels.SendAsPeers
+ Possible errors
+
+
+
+Code
+Type
+Description
+
+
+
+
+400
+PEER_ID_INVALID
+The provided peer id is invalid.
+
+
+
Bots can use this method
diff --git a/data/corefork.telegram.org/method/channels.inviteToChannel b/data/corefork.telegram.org/method/channels.inviteToChannel
index 274d9aebae..95a3195e6b 100644
--- a/data/corefork.telegram.org/method/channels.inviteToChannel
+++ b/data/corefork.telegram.org/method/channels.inviteToChannel
@@ -176,7 +176,7 @@
This user was kicked from this supergroup/channel.
-400
+403
USER_NOT_MUTUAL_CONTACT
The provided user is not a mutual contact.
diff --git a/data/corefork.telegram.org/method/channels.joinChannel b/data/corefork.telegram.org/method/channels.joinChannel
index 6f7ccaf5ce..a14eec4f2a 100644
--- a/data/corefork.telegram.org/method/channels.joinChannel
+++ b/data/corefork.telegram.org/method/channels.joinChannel
@@ -116,7 +116,7 @@
The invite hash is empty.
-400
+406
INVITE_HASH_EXPIRED
The invite link has expired.
diff --git a/data/corefork.telegram.org/method/channels.leaveChannel b/data/corefork.telegram.org/method/channels.leaveChannel
index fa1372fac8..04d008744e 100644
--- a/data/corefork.telegram.org/method/channels.leaveChannel
+++ b/data/corefork.telegram.org/method/channels.leaveChannel
@@ -112,6 +112,11 @@
400
+USER_BANNED_IN_CHANNEL
+You're banned from sending messages in supergroups/channels.
+
+
+400
USER_CREATOR
You can't leave this channel, because you're its creator.
diff --git a/data/corefork.telegram.org/method/channels.viewSponsoredMessage b/data/corefork.telegram.org/method/channels.viewSponsoredMessage
index a7d49baa13..bde027f342 100644
--- a/data/corefork.telegram.org/method/channels.viewSponsoredMessage
+++ b/data/corefork.telegram.org/method/channels.viewSponsoredMessage
@@ -92,6 +92,11 @@
400
+CHANNEL_INVALID
+The provided channel is invalid.
+
+
+400
UNKNOWN_ERROR
Internal error.
diff --git a/data/corefork.telegram.org/method/folders.deleteFolder b/data/corefork.telegram.org/method/folders.deleteFolder
index 9946b14b17..82b9adcf1b 100644
--- a/data/corefork.telegram.org/method/folders.deleteFolder
+++ b/data/corefork.telegram.org/method/folders.deleteFolder
@@ -95,6 +95,11 @@
FOLDER_ID_EMPTY
An empty folder ID was specified.
+
+400
+FOLDER_ID_INVALID
+Invalid folder ID.
+
Related pages
diff --git a/data/corefork.telegram.org/method/folders.editPeerFolders b/data/corefork.telegram.org/method/folders.editPeerFolders
index 23433f1cd4..454868ecb9 100644
--- a/data/corefork.telegram.org/method/folders.editPeerFolders
+++ b/data/corefork.telegram.org/method/folders.editPeerFolders
@@ -92,6 +92,11 @@
400
+CHAT_ID_INVALID
+The provided chat id is invalid.
+
+
+400
FOLDER_ID_INVALID
Invalid folder ID.
diff --git a/data/corefork.telegram.org/method/help.getConfig b/data/corefork.telegram.org/method/help.getConfig
index 281f179c47..bea74b0fa1 100644
--- a/data/corefork.telegram.org/method/help.getConfig
+++ b/data/corefork.telegram.org/method/help.getConfig
@@ -86,11 +86,6 @@
400
-CONNECTION_NOT_INITED
-Connection not initialized.
-
-
-400
DATA_INVALID
Encrypted data invalid.
diff --git a/data/corefork.telegram.org/method/invokeWithLayer.html b/data/corefork.telegram.org/method/invokeWithLayer.html
index 65853e125a..ace6be7301 100644
--- a/data/corefork.telegram.org/method/invokeWithLayer.html
+++ b/data/corefork.telegram.org/method/invokeWithLayer.html
@@ -110,11 +110,6 @@
400
-CONNECTION_NOT_INITED
-Connection not initialized.
-
-
-400
INPUT_LAYER_INVALID
The provided layer is invalid.
diff --git a/data/corefork.telegram.org/method/messages.checkChatInvite b/data/corefork.telegram.org/method/messages.checkChatInvite
index 1c5cebfda5..07c2879622 100644
--- a/data/corefork.telegram.org/method/messages.checkChatInvite
+++ b/data/corefork.telegram.org/method/messages.checkChatInvite
@@ -87,12 +87,17 @@
+406
+CHANNEL_PRIVATE
+You haven't joined this channel/supergroup.
+
+
400
INVITE_HASH_EMPTY
The invite hash is empty.
-400
+406
INVITE_HASH_EXPIRED
The invite link has expired.
diff --git a/data/corefork.telegram.org/method/messages.checkHistoryImportPeer b/data/corefork.telegram.org/method/messages.checkHistoryImportPeer
index c82fa85911..fb47af8bd0 100644
--- a/data/corefork.telegram.org/method/messages.checkHistoryImportPeer
+++ b/data/corefork.telegram.org/method/messages.checkHistoryImportPeer
@@ -87,6 +87,11 @@
400
+PEER_ID_INVALID
+The provided peer id is invalid.
+
+
+400
USER_NOT_MUTUAL_CONTACT
The provided user is not a mutual contact.
diff --git a/data/corefork.telegram.org/method/messages.deleteChat b/data/corefork.telegram.org/method/messages.deleteChat
index f566b8e554..60824ef00b 100644
--- a/data/corefork.telegram.org/method/messages.deleteChat
+++ b/data/corefork.telegram.org/method/messages.deleteChat
@@ -87,6 +87,11 @@
400
+CHAT_ADMIN_REQUIRED
+You must be an admin in this chat to do this.
+
+
+400
CHAT_ID_INVALID
The provided chat id is invalid.
diff --git a/data/corefork.telegram.org/method/messages.deleteExportedChatInvite b/data/corefork.telegram.org/method/messages.deleteExportedChatInvite
index 4270f88e26..2b6c24a290 100644
--- a/data/corefork.telegram.org/method/messages.deleteExportedChatInvite
+++ b/data/corefork.telegram.org/method/messages.deleteExportedChatInvite
@@ -79,7 +79,24 @@
Result
-Bool
+Bool
+ Possible errors
+
+
+
+Code
+Type
+Description
+
+
+
+
+400
+INVITE_REVOKED_MISSING
+
+
+
+
diff --git a/data/corefork.telegram.org/method/messages.deleteMessages b/data/corefork.telegram.org/method/messages.deleteMessages
index e56c6ade8d..cf47a052c4 100644
--- a/data/corefork.telegram.org/method/messages.deleteMessages
+++ b/data/corefork.telegram.org/method/messages.deleteMessages
@@ -99,6 +99,11 @@
MESSAGE_DELETE_FORBIDDEN
You can't delete one of the messages you tried to delete, most likely because it is a service message.
+
+400
+MESSAGE_ID_INVALID
+The provided message id is invalid.
+
Bots can use this method
diff --git a/data/corefork.telegram.org/method/messages.editExportedChatInvite b/data/corefork.telegram.org/method/messages.editExportedChatInvite
index a955bd7360..c413c7b4b5 100644
--- a/data/corefork.telegram.org/method/messages.editExportedChatInvite
+++ b/data/corefork.telegram.org/method/messages.editExportedChatInvite
@@ -121,6 +121,11 @@
+403
+EDIT_BOT_INVITE_FORBIDDEN
+
+
+
400
PEER_ID_INVALID
The provided peer id is invalid.
diff --git a/data/corefork.telegram.org/method/messages.editMessage b/data/corefork.telegram.org/method/messages.editMessage
index 0f19135afa..839b369d8b 100644
--- a/data/corefork.telegram.org/method/messages.editMessage
+++ b/data/corefork.telegram.org/method/messages.editMessage
@@ -156,7 +156,7 @@
You haven't joined this channel/supergroup.
-400
+403
CHAT_ADMIN_REQUIRED
You must be an admin in this chat to do this.
diff --git a/data/corefork.telegram.org/method/messages.forwardMessages b/data/corefork.telegram.org/method/messages.forwardMessages
index 8727df4f20..3cc5de151b 100644
--- a/data/corefork.telegram.org/method/messages.forwardMessages
+++ b/data/corefork.telegram.org/method/messages.forwardMessages
@@ -171,6 +171,11 @@
You must be an admin in this chat to do this.
+406
+CHAT_FORWARDS_RESTRICTED
+You can't forward messages from a protected chat.
+
+
400
CHAT_ID_INVALID
The provided chat id is invalid.
@@ -241,17 +246,17 @@
Invalid message ID provided.
-420
-P0NY_FLOODWAIT
-
-
-
400
PEER_ID_INVALID
The provided peer id is invalid.
400
+QUIZ_ANSWER_MISSING
+
+
+
+400
RANDOM_ID_INVALID
A provided random ID is invalid.
@@ -271,22 +276,22 @@
You can't send messages as the specified peer.
+420
+SLOWMODE_WAIT_%d
+Slowmode is enabled in this chat: wait %d seconds before sending another message to this chat.
+
+
400
SLOWMODE_MULTI_MSGS_DISABLED
Slowmode is enabled, you cannot forward multiple messages to this group.
-420
-SLOWMODE_WAIT_X
-Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.
-
-
400
USER_BANNED_IN_CHANNEL
You're banned from sending messages in supergroups/channels.
-400
+403
USER_IS_BLOCKED
You were blocked by this user.
diff --git a/data/corefork.telegram.org/method/messages.getAdminsWithInvites b/data/corefork.telegram.org/method/messages.getAdminsWithInvites
index 0674fba21f..97a24bbc9d 100644
--- a/data/corefork.telegram.org/method/messages.getAdminsWithInvites
+++ b/data/corefork.telegram.org/method/messages.getAdminsWithInvites
@@ -94,6 +94,11 @@
CHAT_WRITE_FORBIDDEN
You can't write in this chat.
+
+400
+PEER_ID_INVALID
+The provided peer id is invalid.
+
diff --git a/data/corefork.telegram.org/method/messages.getChatInviteImporters b/data/corefork.telegram.org/method/messages.getChatInviteImporters
index f7609d765f..7d7ed9f7aa 100644
--- a/data/corefork.telegram.org/method/messages.getChatInviteImporters
+++ b/data/corefork.telegram.org/method/messages.getChatInviteImporters
@@ -121,9 +121,29 @@
400
+CHANNEL_PRIVATE
+You haven't joined this channel/supergroup.
+
+
+400
CHAT_ADMIN_REQUIRED
You must be an admin in this chat to do this.
+
+400
+INVITE_HASH_EXPIRED
+The invite link has expired.
+
+
+400
+PEER_ID_INVALID
+The provided peer id is invalid.
+
+
+400
+SEARCH_WITH_LINK_NOT_SUPPROTED
+
+
Related pages
diff --git a/data/corefork.telegram.org/method/messages.getExportedChatInvite b/data/corefork.telegram.org/method/messages.getExportedChatInvite
index a6d561a1c0..fd914c83ee 100644
--- a/data/corefork.telegram.org/method/messages.getExportedChatInvite
+++ b/data/corefork.telegram.org/method/messages.getExportedChatInvite
@@ -79,7 +79,34 @@
Result
-messages.ExportedChatInvite
+messages.ExportedChatInvite
+ Possible errors
+
+
+
+Code
+Type
+Description
+
+
+
+
+400
+CHAT_ADMIN_REQUIRED
+You must be an admin in this chat to do this.
+
+
+400
+INVITE_HASH_EXPIRED
+The invite link has expired.
+
+
+400
+PEER_ID_INVALID
+The provided peer id is invalid.
+
+
+
diff --git a/data/corefork.telegram.org/method/messages.getExportedChatInvites b/data/corefork.telegram.org/method/messages.getExportedChatInvites
index de67189d1f..9e7d80a051 100644
--- a/data/corefork.telegram.org/method/messages.getExportedChatInvites
+++ b/data/corefork.telegram.org/method/messages.getExportedChatInvites
@@ -124,6 +124,11 @@
CHAT_ADMIN_REQUIRED
You must be an admin in this chat to do this.
+
+400
+PEER_ID_INVALID
+The provided peer id is invalid.
+
Related pages
diff --git a/data/corefork.telegram.org/method/messages.getPollResults b/data/corefork.telegram.org/method/messages.getPollResults
index 8bcf6627bc..aeff7f968e 100644
--- a/data/corefork.telegram.org/method/messages.getPollResults
+++ b/data/corefork.telegram.org/method/messages.getPollResults
@@ -100,6 +100,11 @@
MESSAGE_ID_INVALID
The provided message id is invalid.
+
+400
+PEER_ID_INVALID
+The provided peer id is invalid.
+
diff --git a/data/corefork.telegram.org/method/messages.getSearchResultsCalendar b/data/corefork.telegram.org/method/messages.getSearchResultsCalendar
index 2e33166462..8360d7e3f1 100644
--- a/data/corefork.telegram.org/method/messages.getSearchResultsCalendar
+++ b/data/corefork.telegram.org/method/messages.getSearchResultsCalendar
@@ -122,6 +122,23 @@ mes…">
Result
messages.SearchResultsCalendar
+ Possible errors
+
+
+
+Code
+Type
+Description
+
+
+
+
+400
+FILTER_NOT_SUPPORTED
+
+
+
+
Bots can use this method
diff --git a/data/corefork.telegram.org/method/messages.getStickerSet b/data/corefork.telegram.org/method/messages.getStickerSet
index bb7fdc7fe5..6ce738bcb7 100644
--- a/data/corefork.telegram.org/method/messages.getStickerSet
+++ b/data/corefork.telegram.org/method/messages.getStickerSet
@@ -96,7 +96,7 @@
-400
+406
STICKERSET_INVALID
The provided sticker set is invalid.
diff --git a/data/corefork.telegram.org/method/messages.importChatInvite b/data/corefork.telegram.org/method/messages.importChatInvite
index 8de56011ba..f32d0530c8 100644
--- a/data/corefork.telegram.org/method/messages.importChatInvite
+++ b/data/corefork.telegram.org/method/messages.importChatInvite
@@ -116,7 +116,7 @@
The invite hash is empty.
-400
+406
INVITE_HASH_EXPIRED
The invite link has expired.
diff --git a/data/corefork.telegram.org/method/messages.initHistoryImport b/data/corefork.telegram.org/method/messages.initHistoryImport
index 7643c59d2d..3e58674b29 100644
--- a/data/corefork.telegram.org/method/messages.initHistoryImport
+++ b/data/corefork.telegram.org/method/messages.initHistoryImport
@@ -106,8 +106,8 @@
406
-PREVIOUS_CHAT_IMPORT_ACTIVE_WAIT_5MIN
-Import for this chat is already in progress, wait 5 minutes before starting a new one.
+PREVIOUS_CHAT_IMPORT_ACTIVE_WAIT_%dMIN
+Import for this chat is already in progress, wait %d minutes before starting a new one.
diff --git a/data/corefork.telegram.org/method/messages.markDialogUnread b/data/corefork.telegram.org/method/messages.markDialogUnread
index 6f3364d5a3..da62daa992 100644
--- a/data/corefork.telegram.org/method/messages.markDialogUnread
+++ b/data/corefork.telegram.org/method/messages.markDialogUnread
@@ -84,7 +84,24 @@
Result
-Bool
+Bool
+ Possible errors
+
+
+
+Code
+Type
+Description
+
+
+
+
+400
+PEER_ID_INVALID
+The provided peer id is invalid.
+
+
+
diff --git a/data/corefork.telegram.org/method/messages.readDiscussion b/data/corefork.telegram.org/method/messages.readDiscussion
index 8e6210f618..3466a75e6f 100644
--- a/data/corefork.telegram.org/method/messages.readDiscussion
+++ b/data/corefork.telegram.org/method/messages.readDiscussion
@@ -97,6 +97,11 @@
400
+MSG_ID_INVALID
+Invalid message ID provided.
+
+
+400
PEER_ID_INVALID
The provided peer id is invalid.
diff --git a/data/corefork.telegram.org/method/messages.saveDefaultSendAs b/data/corefork.telegram.org/method/messages.saveDefaultSendAs
index 995e2e4f57..290f2200e6 100644
--- a/data/corefork.telegram.org/method/messages.saveDefaultSendAs
+++ b/data/corefork.telegram.org/method/messages.saveDefaultSendAs
@@ -16,7 +16,10 @@ InputPeer
Result
Bool
-Bots can use this method">
+Possible errors
+Code
+Type
+Description…">
+Possible errors
+Code
+Type
+Description…">
@@ -103,6 +109,23 @@ Bots can use this method">
Result
Bool
+ Possible errors
+
+
+
+Code
+Type
+Description
+
+
+
+
+400
+PEER_ID_INVALID
+The provided peer id is invalid.
+
+
+
Bots can use this method
diff --git a/data/corefork.telegram.org/method/messages.sendInlineBotResult b/data/corefork.telegram.org/method/messages.sendInlineBotResult
index b112d788dd..c61ad9ee2b 100644
--- a/data/corefork.telegram.org/method/messages.sendInlineBotResult
+++ b/data/corefork.telegram.org/method/messages.sendInlineBotResult
@@ -242,8 +242,8 @@
420
-SLOWMODE_WAIT_X
-Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.
+SLOWMODE_WAIT_%d
+Slowmode is enabled in this chat: wait %d seconds before sending another message to this chat.
400
diff --git a/data/corefork.telegram.org/method/messages.sendMedia b/data/corefork.telegram.org/method/messages.sendMedia
index e9648ce8d1..79981f76e1 100644
--- a/data/corefork.telegram.org/method/messages.sendMedia
+++ b/data/corefork.telegram.org/method/messages.sendMedia
@@ -202,6 +202,11 @@
400
+CHAT_FORWARDS_RESTRICTED
+You can't forward messages from a protected chat.
+
+
+400
CHAT_RESTRICTED
You can't send messages in this chat, you were restricted.
@@ -407,8 +412,8 @@
420
-SLOWMODE_WAIT_X
-Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.
+SLOWMODE_WAIT_%d
+Slowmode is enabled in this chat: wait %d seconds before sending another message to this chat.
400
@@ -421,7 +426,7 @@
You're banned from sending messages in supergroups/channels.
-400
+403
USER_IS_BLOCKED
You were blocked by this user.
diff --git a/data/corefork.telegram.org/method/messages.sendMessage b/data/corefork.telegram.org/method/messages.sendMessage
index 5a6cc5d5dc..5ec048a199 100644
--- a/data/corefork.telegram.org/method/messages.sendMessage
+++ b/data/corefork.telegram.org/method/messages.sendMessage
@@ -253,7 +253,7 @@
400
MSG_ID_INVALID
-Provided reply_to_msg_id is invalid.
+Invalid message ID provided.
400
@@ -307,8 +307,8 @@
420
-SLOWMODE_WAIT_X
-Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.
+SLOWMODE_WAIT_%d
+Slowmode is enabled in this chat: wait %d seconds before sending another message to this chat.
400
@@ -316,7 +316,7 @@
You're banned from sending messages in supergroups/channels.
-400
+403
USER_IS_BLOCKED
You were blocked by this user.
diff --git a/data/corefork.telegram.org/method/messages.sendMultiMedia b/data/corefork.telegram.org/method/messages.sendMultiMedia
index 58d8e5d465..892902fba7 100644
--- a/data/corefork.telegram.org/method/messages.sendMultiMedia
+++ b/data/corefork.telegram.org/method/messages.sendMultiMedia
@@ -146,6 +146,11 @@
You must be an admin in this chat to do this.
+403
+CHAT_WRITE_FORBIDDEN
+You can't write in this chat.
+
+
400
MEDIA_CAPTION_TOO_LONG
The caption is too long.
@@ -187,8 +192,8 @@
420
-SLOWMODE_WAIT_X
-Slowmode is enabled in this chat: wait X seconds before sending another message to this chat.
+SLOWMODE_WAIT_%d
+Slowmode is enabled in this chat: wait %d seconds before sending another message to this chat.
diff --git a/data/corefork.telegram.org/method/messages.sendReaction b/data/corefork.telegram.org/method/messages.sendReaction
index 461ffabe00..2ee569b9fd 100644
--- a/data/corefork.telegram.org/method/messages.sendReaction
+++ b/data/corefork.telegram.org/method/messages.sendReaction
@@ -112,14 +112,29 @@
400
+CHANNEL_PRIVATE
+You haven't joined this channel/supergroup.
+
+
+400
MESSAGE_ID_INVALID
The provided message id is invalid.
400
+PEER_ID_INVALID
+The provided peer id is invalid.
+
+
+400
REACTION_EMPTY
Empty reaction provided.
+
+400
+REACTION_INVALID
+The specified reaction is invalid.
+
Bots can use this method
diff --git a/data/corefork.telegram.org/method/messages.setChatTheme b/data/corefork.telegram.org/method/messages.setChatTheme
index c7761686c9..31cc1ce8f4 100644
--- a/data/corefork.telegram.org/method/messages.setChatTheme
+++ b/data/corefork.telegram.org/method/messages.setChatTheme
@@ -105,6 +105,11 @@
EMOJI_NOT_MODIFIED
The theme wasn't changed.
+
+400
+PEER_ID_INVALID
+The provided peer id is invalid.
+
Related pages
diff --git a/data/corefork.telegram.org/method/messages.setGameScore b/data/corefork.telegram.org/method/messages.setGameScore
index fcb4cfa74d..ca69e17deb 100644
--- a/data/corefork.telegram.org/method/messages.setGameScore
+++ b/data/corefork.telegram.org/method/messages.setGameScore
@@ -137,6 +137,11 @@
400
+SCORE_INVALID
+
+
+
+400
USER_BOT_REQUIRED
This method can only be called by a bot.
diff --git a/data/corefork.telegram.org/method/messages.setTyping b/data/corefork.telegram.org/method/messages.setTyping
index 46acc17506..f1eba4bdfe 100644
--- a/data/corefork.telegram.org/method/messages.setTyping
+++ b/data/corefork.telegram.org/method/messages.setTyping
@@ -126,6 +126,11 @@
You can't write in this chat.
+403
+GROUPCALL_FORBIDDEN
+The group call has already ended.
+
+
400
INPUT_USER_DEACTIVATED
The specified user was deleted.
@@ -146,7 +151,7 @@
You're banned from sending messages in supergroups/channels.
-400
+403
USER_IS_BLOCKED
You were blocked by this user.
diff --git a/data/corefork.telegram.org/method/phone.getGroupCall b/data/corefork.telegram.org/method/phone.getGroupCall
index 1c7a9d7e43..0391c31494 100644
--- a/data/corefork.telegram.org/method/phone.getGroupCall
+++ b/data/corefork.telegram.org/method/phone.getGroupCall
@@ -79,6 +79,23 @@
Result
phone.GroupCall
+ Possible errors
+
+
+
+Code
+Type
+Description
+
+
+
+
+400
+GROUPCALL_INVALID
+
+
+
+
Related pages
How to fetch results from large lists of objects.
diff --git a/data/corefork.telegram.org/method/phone.inviteToGroupCall b/data/corefork.telegram.org/method/phone.inviteToGroupCall
index c8dfcd5467..79e3e1dfc8 100644
--- a/data/corefork.telegram.org/method/phone.inviteToGroupCall
+++ b/data/corefork.telegram.org/method/phone.inviteToGroupCall
@@ -100,6 +100,16 @@
GROUPCALL_FORBIDDEN
The group call has already ended.
+
+400
+INVITE_FORBIDDEN_WITH_JOINAS
+
+
+
+400
+USER_ALREADY_INVITED
+
+
diff --git a/data/corefork.telegram.org/method/phone.requestCall b/data/corefork.telegram.org/method/phone.requestCall
index e7adb87ac5..0a2e72f6ce 100644
--- a/data/corefork.telegram.org/method/phone.requestCall
+++ b/data/corefork.telegram.org/method/phone.requestCall
@@ -116,6 +116,11 @@
400
+INPUT_USER_DEACTIVATED
+The specified user was deleted.
+
+
+400
PARTICIPANT_VERSION_OUTDATED
The other participant does not use an up to date telegram client with support for calls.
diff --git a/data/corefork.telegram.org/method/photos.updateProfilePhoto b/data/corefork.telegram.org/method/photos.updateProfilePhoto
index 030a5510e6..b21185781d 100644
--- a/data/corefork.telegram.org/method/photos.updateProfilePhoto
+++ b/data/corefork.telegram.org/method/photos.updateProfilePhoto
@@ -87,7 +87,7 @@
400
ALBUM_PHOTOS_TOO_MANY
-Too many.
+
400
diff --git a/data/corefork.telegram.org/method/photos.uploadProfilePhoto b/data/corefork.telegram.org/method/photos.uploadProfilePhoto
index 73e237c570..36394663f7 100644
--- a/data/corefork.telegram.org/method/photos.uploadProfilePhoto
+++ b/data/corefork.telegram.org/method/photos.uploadProfilePhoto
@@ -102,7 +102,7 @@
400
ALBUM_PHOTOS_TOO_MANY
-Too many .
+
400
diff --git a/data/corefork.telegram.org/method/stats.getMessageStats b/data/corefork.telegram.org/method/stats.getMessageStats
index 4c857a7128..c34771adf0 100644
--- a/data/corefork.telegram.org/method/stats.getMessageStats
+++ b/data/corefork.telegram.org/method/stats.getMessageStats
@@ -109,6 +109,11 @@
CHAT_ADMIN_REQUIRED
You must be an admin in this chat to do this.
+
+400
+MESSAGE_ID_INVALID
+The provided message id is invalid.
+
Related pages
diff --git a/data/corefork.telegram.org/method/stickers.addStickerToSet b/data/corefork.telegram.org/method/stickers.addStickerToSet
index 0d7e791743..d8beafc83c 100644
--- a/data/corefork.telegram.org/method/stickers.addStickerToSet
+++ b/data/corefork.telegram.org/method/stickers.addStickerToSet
@@ -97,11 +97,21 @@
400
+STICKERPACK_STICKERS_TOO_MUCH
+
+
+
+400
STICKERSET_INVALID
The provided sticker set is invalid.
400
+STICKERS_TOO_MUCH
+
+
+
+400
STICKER_PNG_NOPNG
One of the specified stickers is not a valid PNG file.
diff --git a/data/corefork.telegram.org/method/stickers.createStickerSet b/data/corefork.telegram.org/method/stickers.createStickerSet
index 16998344e8..9df8d89d6c 100644
--- a/data/corefork.telegram.org/method/stickers.createStickerSet
+++ b/data/corefork.telegram.org/method/stickers.createStickerSet
@@ -177,6 +177,11 @@
400
+STICKER_GIF_DIMENSIONS
+
+
+
+400
STICKER_PNG_DIMENSIONS
Sticker png dimensions invalid.
@@ -207,6 +212,16 @@
400
+STICKER_VIDEO_BIG
+
+
+
+400
+STICKER_VIDEO_NOWEBM
+
+
+
+400
USER_ID_INVALID
The provided user ID is invalid.
diff --git a/data/corefork.telegram.org/method/updates.getDifference b/data/corefork.telegram.org/method/updates.getDifference
index f11b948f4f..3a7a1fd633 100644
--- a/data/corefork.telegram.org/method/updates.getDifference
+++ b/data/corefork.telegram.org/method/updates.getDifference
@@ -118,6 +118,11 @@
You can't call this method in a CDN DC.
+400
+CHANNEL_INVALID
+The provided channel is invalid.
+
+
403
CHAT_WRITE_FORBIDDEN
You can't write in this chat.
diff --git a/data/corefork.telegram.org/method/upload.getFile b/data/corefork.telegram.org/method/upload.getFile
index 7a66fffea1..2893b9f00c 100644
--- a/data/corefork.telegram.org/method/upload.getFile
+++ b/data/corefork.telegram.org/method/upload.getFile
@@ -126,6 +126,11 @@
You haven't joined this channel/supergroup.
+400
+FILE_REFERENCE_*
+The file reference expired, it must be refreshed .
+
+
406
FILEREF_UPGRADE_NEEDED
The client has to be updated in order to support file references .
@@ -137,11 +142,6 @@
400
-FILE_REFERENCE_*
-The file reference expired, it must be refreshed .
-
-
-400
FILE_REFERENCE_EXPIRED
File reference expired, it must be refetched as described in https://core.telegram.org/api/file_reference .
@@ -174,9 +174,7 @@
Bots can use this method
Related pages
-
-
-How to handle file references.
+
diff --git a/data/corefork.telegram.org/method/users.getUsers b/data/corefork.telegram.org/method/users.getUsers
index 87b937c920..1cc9ab690c 100644
--- a/data/corefork.telegram.org/method/users.getUsers
+++ b/data/corefork.telegram.org/method/users.getUsers
@@ -100,11 +100,6 @@
400
-CONNECTION_NOT_INITED
-Connection not initialized.
-
-
-400
INPUT_LAYER_INVALID
The provided layer is invalid.
@@ -113,6 +108,11 @@
MSG_ID_INVALID
Invalid message ID provided.
+
+400
+USER_BANNED_IN_CHANNEL
+You're banned from sending messages in supergroups/channels.
+
Bots can use this method