diff --git a/data/corefork.telegram.org/api/animated-emojis.html b/data/corefork.telegram.org/api/animated-emojis.html index f4c1402574..cfdb362df5 100644 --- a/data/corefork.telegram.org/api/animated-emojis.html +++ b/data/corefork.telegram.org/api/animated-emojis.html @@ -46,7 +46,7 @@ ---functions--- -messages.getStickerSet#2619a90e stickerset:InputStickerSet = messages.StickerSet; +messages.getStickerSet#c8a0ec74 stickerset:InputStickerSet hash:int = messages.StickerSet;

On startup, clients should fetch the animated emoji stickerset by calling the messages.getStickerSet method, providing inputStickerSetAnimatedEmoji to the stickerset field.
The returned stickerset will contain a set of animated stickers, one for each of the supported emojis.

Clients should substitute messages containing only one instance of one of the allowed emojis with the respective animated sticker.

@@ -88,7 +88,7 @@ For supported emojis, clients on both sides of pr ---functions--- -messages.getStickerSet#2619a90e stickerset:InputStickerSet = messages.StickerSet; +messages.getStickerSet#c8a0ec74 stickerset:InputStickerSet hash:int = messages.StickerSet; messages.setTyping#58943ee2 flags:# peer:InputPeer top_msg_id:flags.0?int action:SendMessageAction = Bool;

On startup, clients should fetch the animated reaction emoji stickerset by calling the messages.getStickerSet method, providing inputStickerSetAnimatedEmojiAnimations to the stickerset field.
diff --git a/data/corefork.telegram.org/api/auth.html b/data/corefork.telegram.org/api/auth.html index aee36a6995..8a75ad1624 100644 --- a/data/corefork.telegram.org/api/auth.html +++ b/data/corefork.telegram.org/api/auth.html @@ -42,56 +42,64 @@

Authorization is associated with a client’s encryption key identifier: auth_key_id. No additional parameters need to be passed into methods following authorization.

-

To log in as a bot, follow these instructions ».

-

Sending a verification code

+

To log in as a bot, follow these instructions ».

+

Sending a verification code

Example implementations: telegram for android, tdlib.

-

To show a nicely formatted and validated phone number field, the help.countriesList constructor can be obtained using the help.getCountriesList method.
The help.countriesList config is then used as described here ».

-

Authorization requires that a text message containing an authorization code first be sent to the user’s phone.
This may be done using the auth.sendCode method.
The system will automatically choose how to send the authorization code; there are four possible ways the code can arrive:

+

To show a nicely formatted and validated phone number field, the help.countriesList constructor can be obtained using the help.getCountriesList method.
+The help.countriesList config is then used as described here ».

+

Authorization requires that a text message containing an authorization code first be sent to the user’s phone.
+This may be done using the auth.sendCode method. +The system will automatically choose how to send the authorization code; there are four possible ways the code can arrive:

-

The auth.sendCode method also has parameters for enabling/disabling use of flash calls, and allows passing an SMS token that will be included in the sent SMS.
For example, the latter is required in newer versions of android, to use the android SMS receiver APIs.

+

The auth.sendCode method also has parameters for enabling/disabling use of flash calls, and allows passing an SMS token that will be included in the sent SMS. +For example, the latter is required in newer versions of android, to use the android SMS receiver APIs.

The returned auth.SentCode object will contain multiple parameters:

- + - + - + - + - +
flags## Flags, see TL conditional fields
typeauth.SentCodeTypeauth.SentCodeType Phone code type
phone_code_hashstringstring Phone code hash, to be stored and later re-used with auth.signIn
next_typeflags.1?auth.CodeTypeflags.1?auth.CodeType Phone code type that will be sent next, if the phone code is not received within timeout seconds: to send it use auth.resendCode
timeoutflags.2?intflags.2?int Timeout for reception of the phone code
-

If the message takes too long (timeout seconds) to arrive at the phone, the auth.resendCode method may be invoked to resend a code of type next_type.
If the same happens again, you can use auth.resendCode with the next_type returned by the previous call to auth.resendCode.
To cancel the verification code use auth.cancelCode.

-

Sign in/sign up

+

If the message takes too long (timeout seconds) to arrive at the phone, the auth.resendCode method may be invoked to resend a code of type next_type. +If the same happens again, you can use auth.resendCode with the next_type returned by the previous call to auth.resendCode. +To cancel the verification code use auth.cancelCode.

+

Sign in/sign up

When user enters verification code, the auth.signIn method must be used to validate it and possibly sign user in.

-

If the code was entered correctly, but the method returns auth.authorizationSignUpRequired, it means that account with this phone number doesn't exist yet: user needs to provide basic information, accept terms of service and then the new user registration method (auth.signUp) must be invoked.

-

2FA

-

When trying to sign in using auth.signIn, an error 400 SESSION_PASSWORD_NEEDED may be returned, if the user has two-factor authentication enabled.
In this case, instructions for SRP 2FA authentication must be followed.

+

If the code was entered correctly, but the method returns auth.authorizationSignUpRequired, it means that account with this phone number doesn't exist yet: user needs to provide basic information, accept terms of service and then the new user registration method (auth.signUp) must be invoked.

+

2FA

+

When trying to sign in using auth.signIn, an error 400 SESSION_PASSWORD_NEEDED may be returned, if the user has two-factor authentication enabled. +In this case, instructions for SRP 2FA authentication must be followed.

To set up two-factor authorization on an already authorized account, follow the SRP 2FA authentication docs.

-

Test Accounts

+

Test Accounts

Each phone number is limited to only a certain amount of logins per day (e.g. 5, but this is subject to change) after which the API will return a FLOOD error until the next day. This might not be enough for testing the implementation of User Authorization flows in client applications.

There are several reserved phone number prefixes for testing that your application handles redirects between DCs, sign up, sign in and 2FA flows correctly. These numbers are only available on Test DCs (their IP addresses for TCP transport are availble in API development tools panel after api_id was obtained, URI format for HTTPS/Websocket transport).

If you wish to emulate an application of a user associated with DC number X, it is sufficient to specify the phone number as 99966XYYYY, where YYYY are random numbers, when registering the user. A user like this would always get XXXXX as the login confirmation code (the DC number, repeated five times). Note that the value of X must be in the range of 1-3 because there are only 3 Test DCs. When the flood limit is reached for any particular test number, just choose another number (changing the YYYY random part).

@@ -100,7 +108,7 @@

To help you with working on production DCs, logins with the same phone number with which the api_id was registered have more generous flood limits.

-

We are authorized

+

We are authorized

As a result of authorization, the client key, auth_key_id, becomes associated with the user, and each subsequent API call with this key will be executed with that user’s identity. The authorization method itself returns the relevant user. It is best to immediately store the User ID locally in a binding with the key.

Only a small portion of the API methods are available to unauthorized users:

-

Other methods will result in an error: 401 UNAUTHORIZED.

-
+

Other methods will result in an error: 401 UNAUTHORIZED.

diff --git a/data/corefork.telegram.org/api/bots/buttons.html b/data/corefork.telegram.org/api/bots/buttons.html index f96e195248..04e277f869 100644 --- a/data/corefork.telegram.org/api/bots/buttons.html +++ b/data/corefork.telegram.org/api/bots/buttons.html @@ -64,11 +64,11 @@ This article describes the full button flow, using the MTProto API.

replyKeyboardMarkup#85dd99d1 flags:# resize:flags.0?true single_use:flags.1?true selective:flags.2?true rows:Vector<KeyboardButtonRow> placeholder:flags.3?string = ReplyMarkup; replyInlineMarkup#48a30254 rows:Vector<KeyboardButtonRow> = ReplyMarkup; -message#85d6cbe2 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true post:flags.14?true from_scheduled:flags.18?true legacy:flags.19?true edit_hide:flags.21?true pinned:flags.24?true id:int from_id:flags.8?Peer peer_id:Peer fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?long reply_to:flags.3?MessageReplyHeader date:int message:string media:flags.9?MessageMedia reply_markup:flags.6?ReplyMarkup entities:flags.7?Vector<MessageEntity> views:flags.10?int forwards:flags.10?int replies:flags.23?MessageReplies edit_date:flags.15?int post_author:flags.16?string grouped_id:flags.17?long restriction_reason:flags.22?Vector<RestrictionReason> ttl_period:flags.25?int = Message; +message#38116ee0 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true post:flags.14?true from_scheduled:flags.18?true legacy:flags.19?true edit_hide:flags.21?true pinned:flags.24?true noforwards:flags.26?true id:int from_id:flags.8?Peer peer_id:Peer fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?long reply_to:flags.3?MessageReplyHeader date:int message:string media:flags.9?MessageMedia reply_markup:flags.6?ReplyMarkup entities:flags.7?Vector<MessageEntity> views:flags.10?int forwards:flags.10?int replies:flags.23?MessageReplies edit_date:flags.15?int post_author:flags.16?string grouped_id:flags.17?long reactions:flags.20?MessageReactions restriction_reason:flags.22?Vector<RestrictionReason> ttl_period:flags.25?int = Message; ---functions--- -messages.sendMessage#520c3870 flags:# no_webpage:flags.1?true silent:flags.5?true background:flags.6?true clear_draft:flags.7?true peer:InputPeer reply_to_msg_id:flags.0?int message:string random_id:long reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector<MessageEntity> schedule_date:flags.10?int = Updates; +messages.sendMessage#d9d75a4 flags:# no_webpage:flags.1?true silent:flags.5?true background:flags.6?true clear_draft:flags.7?true noforwards:flags.14?true peer:InputPeer reply_to_msg_id:flags.0?int message:string random_id:long reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector<MessageEntity> schedule_date:flags.10?int send_as:flags.13?InputPeer = Updates;

Bots can attach a ReplyMarkup constructor to outgoing messages, to attach an inline keyboard or a custom reply keyboard:

chatBannedRights#9f120418 flags:# view_messages:flags.0?true send_messages:flags.1?true send_media:flags.2?true send_stickers:flags.3?true send_gifs:flags.4?true send_games:flags.5?true send_inline:flags.6?true embed_links:flags.7?true send_polls:flags.8?true change_info:flags.10?true invite_users:flags.15?true pin_messages:flags.17?true until_date:int = ChatBannedRights;

-

Parameters

+

Parameters

- + - + - + - + - + - + - + - + - + - + - + - + - + - + - +
NameTypeType Description
flags## Flags, see TL conditional fields
view_messagesflags.0?trueflags.0?true If set, does not allow a user to view messages in a supergroup/channel/chat
send_messagesflags.1?trueflags.1?true If set, does not allow a user to send messages in a supergroup/chat
send_mediaflags.2?trueflags.2?true If set, does not allow a user to send any media in a supergroup/chat
send_stickersflags.3?trueflags.3?true If set, does not allow a user to send stickers in a supergroup/chat
send_gifsflags.4?trueflags.4?true If set, does not allow a user to send gifs in a supergroup/chat
send_gamesflags.5?trueflags.5?true If set, does not allow a user to send games in a supergroup/chat
send_inlineflags.6?trueflags.6?true If set, does not allow a user to use inline bots in a supergroup/chat
embed_linksflags.7?trueflags.7?true If set, does not allow a user to embed links in the messages of a supergroup/chat
send_pollsflags.8?trueflags.8?true If set, does not allow a user to send polls in a supergroup/chat
change_infoflags.10?trueflags.10?true If set, does not allow any user to change the description of a supergroup/chat
invite_usersflags.15?trueflags.15?true If set, does not allow any user to invite users in a supergroup/chat
pin_messagesflags.17?trueflags.17?true If set, does not allow any user to pin messages in a supergroup/chat
until_dateintint Validity of said permissions (it is considered forever any value less then 30 seconds or more then 366 days).
-

Type

+

Type

ChatBannedRights

-

Related pages

-

Channels

-

How to handle channels, supergroups, groups, and what's the difference between them.

- +

Related pages

+

Channels

+

How to handle channels, supergroups, groups, and what's the difference between them.

diff --git a/data/corefork.telegram.org/constructor/chatFull.html b/data/corefork.telegram.org/constructor/chatFull.html index bec3c9c54d..aa86b98d98 100644 --- a/data/corefork.telegram.org/constructor/chatFull.html +++ b/data/corefork.telegram.org/constructor/chatFull.html @@ -143,6 +143,21 @@ flags.16?string Emoji representing a specific chat theme + +requests_pending +flags.17?int +  + + +recent_requesters +flags.17?Vector<long> +  + + +available_reactions +flags.18?Vector<string> +  +

Type

diff --git a/data/corefork.telegram.org/constructor/chatInvite.html b/data/corefork.telegram.org/constructor/chatInvite.html index b680520085..75dd9baf78 100644 --- a/data/corefork.telegram.org/constructor/chatInvite.html +++ b/data/corefork.telegram.org/constructor/chatInvite.html @@ -89,11 +89,21 @@ Whether this is a supergroup +request_needed +flags.6?true +  + + title string Chat/supergroup/channel title +about +flags.5?string +  + + photo Photo Chat/supergroup/channel photo diff --git a/data/corefork.telegram.org/constructor/chatInviteExported.html b/data/corefork.telegram.org/constructor/chatInviteExported.html index 73c313fb20..870c088c88 100644 --- a/data/corefork.telegram.org/constructor/chatInviteExported.html +++ b/data/corefork.telegram.org/constructor/chatInviteExported.html @@ -79,6 +79,11 @@ Whether this chat invite has no expiration +request_needed +flags.6?true +  + + link string Chat invitation link @@ -113,6 +118,16 @@ flags.3?int How many users joined using this link + +requested +flags.7?int +  + + +title +flags.8?string +  +

Type

diff --git a/data/corefork.telegram.org/constructor/chatInviteImporter.html b/data/corefork.telegram.org/constructor/chatInviteImporter.html index a309a07e94..4b46226e9a 100644 --- a/data/corefork.telegram.org/constructor/chatInviteImporter.html +++ b/data/corefork.telegram.org/constructor/chatInviteImporter.html @@ -64,6 +64,16 @@ +flags +# +Flags, see TL conditional fields + + +requested +flags.0?true +  + + user_id long The user @@ -73,6 +83,16 @@ int When did the user join + +about +flags.2?string +  + + +approved_by +flags.1?long +  +

Type

diff --git a/data/corefork.telegram.org/constructor/codeSettings.html b/data/corefork.telegram.org/constructor/codeSettings.html index d69054a1f4..094bca3fa1 100644 --- a/data/corefork.telegram.org/constructor/codeSettings.html +++ b/data/corefork.telegram.org/constructor/codeSettings.html @@ -84,6 +84,16 @@ flags.4?true If a token that will be included in eventually sent SMSs is required: required in newer versions of android, to use the android SMS receiver APIs + +allow_missed_call +flags.5?true +  + + +logout_tokens +flags.6?Vector<bytes> +  +

Type

diff --git a/data/corefork.telegram.org/constructor/dialog.html b/data/corefork.telegram.org/constructor/dialog.html index 882442e054..27eac357c4 100644 --- a/data/corefork.telegram.org/constructor/dialog.html +++ b/data/corefork.telegram.org/constructor/dialog.html @@ -109,6 +109,11 @@ Number of unread mentions +unread_reactions_count +int +  + + notify_settings PeerNotifySettings Notification settings diff --git a/data/corefork.telegram.org/constructor/groupCall.html b/data/corefork.telegram.org/constructor/groupCall.html index 54940b8b27..4678ea435d 100644 --- a/data/corefork.telegram.org/constructor/groupCall.html +++ b/data/corefork.telegram.org/constructor/groupCall.html @@ -99,6 +99,11 @@ Whether the group call is currently being recorded +rtmp_stream +flags.12?true +  + + id long Group call ID diff --git a/data/corefork.telegram.org/constructor/inputKeyboardButtonUserProfile.html b/data/corefork.telegram.org/constructor/inputKeyboardButtonUserProfile.html index 0780c13516..63b978464d 100644 --- a/data/corefork.telegram.org/constructor/inputKeyboardButtonUserProfile.html +++ b/data/corefork.telegram.org/constructor/inputKeyboardButtonUserProfile.html @@ -2,12 +2,34 @@ - Page not found + inputKeyboardButtonUserProfile - - + + - + @@ -36,10 +58,46 @@
- -

Page not found

+ +

inputKeyboardButtonUserProfile

-
The page has not been saved
+

+ +
+
inputKeyboardButtonUserProfile#e988037b text:string user_id:InputUser = KeyboardButton;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
textstring 
user_idInputUser 
+

Type

+

KeyboardButton

diff --git a/data/corefork.telegram.org/constructor/keyboardButtonUserProfile.html b/data/corefork.telegram.org/constructor/keyboardButtonUserProfile.html index 0780c13516..f40116fc48 100644 --- a/data/corefork.telegram.org/constructor/keyboardButtonUserProfile.html +++ b/data/corefork.telegram.org/constructor/keyboardButtonUserProfile.html @@ -2,12 +2,34 @@ - Page not found + keyboardButtonUserProfile - - + + - + @@ -36,10 +58,46 @@
- -

Page not found

+ +

keyboardButtonUserProfile

-
The page has not been saved
+

+ +
+
keyboardButtonUserProfile#308660c1 text:string user_id:long = KeyboardButton;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
textstring 
user_idlong 
+

Type

+

KeyboardButton

diff --git a/data/corefork.telegram.org/constructor/message.html b/data/corefork.telegram.org/constructor/message.html index 803b48ba9f..fcae72fd1f 100644 --- a/data/corefork.telegram.org/constructor/message.html +++ b/data/corefork.telegram.org/constructor/message.html @@ -114,6 +114,11 @@ Whether this message is pinned +noforwards +flags.26?true +  + + id int ID of the message @@ -199,6 +204,11 @@ Multiple media messages sent using messages.sendMultiMedia with the same grouped ID indicate an album or media group +reactions +flags.20?MessageReactions +  + + restriction_reason flags.22?Vector<RestrictionReason> Contains the reason why access to this message must be restricted. diff --git a/data/corefork.telegram.org/constructor/messageActionChatJoinedByRequest.html b/data/corefork.telegram.org/constructor/messageActionChatJoinedByRequest.html index 0780c13516..9440a5b57c 100644 --- a/data/corefork.telegram.org/constructor/messageActionChatJoinedByRequest.html +++ b/data/corefork.telegram.org/constructor/messageActionChatJoinedByRequest.html @@ -2,12 +2,18 @@ - Page not found + messageActionChatJoinedByRequest - - + + - + @@ -36,10 +42,26 @@
- -

Page not found

+ +

messageActionChatJoinedByRequest

-
The page has not been saved
+

+ +
+
messageActionChatJoinedByRequest#ebbca3cb = MessageAction;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

MessageAction

diff --git a/data/corefork.telegram.org/constructor/messageEntitySpoiler.html b/data/corefork.telegram.org/constructor/messageEntitySpoiler.html index 0780c13516..52f9baeddb 100644 --- a/data/corefork.telegram.org/constructor/messageEntitySpoiler.html +++ b/data/corefork.telegram.org/constructor/messageEntitySpoiler.html @@ -2,12 +2,34 @@ - Page not found + messageEntitySpoiler - - + + - + @@ -36,10 +58,46 @@
- -

Page not found

+ +

messageEntitySpoiler

-
The page has not been saved
+

+ +
+
messageEntitySpoiler#32ca960f offset:int length:int = MessageEntity;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
offsetint 
lengthint 
+

Type

+

MessageEntity

diff --git a/data/corefork.telegram.org/constructor/messagePeerReaction.html b/data/corefork.telegram.org/constructor/messagePeerReaction.html index 0780c13516..4d78931529 100644 --- a/data/corefork.telegram.org/constructor/messagePeerReaction.html +++ b/data/corefork.telegram.org/constructor/messagePeerReaction.html @@ -2,12 +2,38 @@ - Page not found + messagePeerReaction - - + + - + @@ -36,10 +62,61 @@
- -

Page not found

+ +

messagePeerReaction

-
The page has not been saved
+

+ +
+
messagePeerReaction#51b67eff flags:# big:flags.0?true unread:flags.1?true peer_id:Peer reaction:string = MessagePeerReaction;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
bigflags.0?true 
unreadflags.1?true 
peer_idPeer 
reactionstring 
+

Type

+

MessagePeerReaction

diff --git a/data/corefork.telegram.org/constructor/messageReactions.html b/data/corefork.telegram.org/constructor/messageReactions.html index 8270c5ba16..cc6116f0a6 100644 --- a/data/corefork.telegram.org/constructor/messageReactions.html +++ b/data/corefork.telegram.org/constructor/messageReactions.html @@ -74,10 +74,20 @@ Similar to min objects, used for message reaction constructors that are the same for all users so they don't have the reactions sent by the current user (you can use messages.getMessagesReactions to get the full reaction info). +can_see_list +flags.2?true +  + + results Vector<ReactionCount> Reactions + +recent_reactions +flags.1?Vector<MessagePeerReaction> +  +

Type

diff --git a/data/corefork.telegram.org/constructor/messageUserReaction.html b/data/corefork.telegram.org/constructor/messageUserReaction.html new file mode 100644 index 0000000000..7aa6bcbbc9 --- /dev/null +++ b/data/corefork.telegram.org/constructor/messageUserReaction.html @@ -0,0 +1,152 @@ + + + + + messageUserReaction + + + + + + + + + + + + + +
+ +
+
+
+ +

messageUserReaction

+ +

Message reaction

+

+ +
+
Constructor schema is available as of layer 138. Switch »

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
user_idintID of user that reacted this way
reactionstringReaction (UTF8 emoji)
+

Type

+

MessageUserReaction

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/corefork.telegram.org/constructor/messages.availableReactions b/data/corefork.telegram.org/constructor/messages.availableReactions index 0780c13516..1e7d1d634a 100644 --- a/data/corefork.telegram.org/constructor/messages.availableReactions +++ b/data/corefork.telegram.org/constructor/messages.availableReactions @@ -2,12 +2,34 @@ - Page not found + messages.availableReactions - - + + - + @@ -36,10 +58,46 @@
- -

Page not found

+ +

messages.availableReactions

-
The page has not been saved
+

+ +
+
messages.availableReactions#768e3aad hash:int reactions:Vector<AvailableReaction> = messages.AvailableReactions;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
hashint 
reactionsVector<AvailableReaction> 
+

Type

+

messages.AvailableReactions

diff --git a/data/corefork.telegram.org/constructor/messages.availableReactionsNotModified b/data/corefork.telegram.org/constructor/messages.availableReactionsNotModified index 0780c13516..7ba65c9b47 100644 --- a/data/corefork.telegram.org/constructor/messages.availableReactionsNotModified +++ b/data/corefork.telegram.org/constructor/messages.availableReactionsNotModified @@ -2,12 +2,18 @@ - Page not found + messages.availableReactionsNotModified - - + + - + @@ -36,10 +42,26 @@
- -

Page not found

+ +

messages.availableReactionsNotModified

-
The page has not been saved
+

+ +
+
messages.availableReactionsNotModified#9f071957 = messages.AvailableReactions;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

messages.AvailableReactions

diff --git a/data/corefork.telegram.org/constructor/messages.messageReactionsList b/data/corefork.telegram.org/constructor/messages.messageReactionsList index 0780c13516..b9d96a9d40 100644 --- a/data/corefork.telegram.org/constructor/messages.messageReactionsList +++ b/data/corefork.telegram.org/constructor/messages.messageReactionsList @@ -2,12 +2,34 @@ - Page not found + messages.messageReactionsList - - + + - + @@ -36,10 +58,66 @@
- -

Page not found

+ +

messages.messageReactionsList

-
The page has not been saved
+

+ +
+
messages.messageReactionsList#31bd492d flags:# count:int reactions:Vector<MessagePeerReaction> chats:Vector<Chat> users:Vector<User> next_offset:flags.0?string = messages.MessageReactionsList;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
countint 
reactionsVector<MessagePeerReaction> 
chatsVector<Chat> 
usersVector<User> 
next_offsetflags.0?string 
+

Type

+

messages.MessageReactionsList

diff --git a/data/corefork.telegram.org/constructor/messages.peerSettings b/data/corefork.telegram.org/constructor/messages.peerSettings index 0780c13516..f7514b8ece 100644 --- a/data/corefork.telegram.org/constructor/messages.peerSettings +++ b/data/corefork.telegram.org/constructor/messages.peerSettings @@ -2,12 +2,40 @@ - Page not found + messages.peerSettings - - + + - + @@ -36,10 +64,51 @@
- -

Page not found

+ +

messages.peerSettings

-
The page has not been saved
+

+ +
+
messages.peerSettings#6880b94d settings:PeerSettings chats:Vector<Chat> users:Vector<User> = messages.PeerSettings;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
settingsPeerSettings 
chatsVector<Chat> 
usersVector<User> 
+

Type

+

messages.PeerSettings

diff --git a/data/corefork.telegram.org/constructor/messages.searchResultsCalendar b/data/corefork.telegram.org/constructor/messages.searchResultsCalendar index 0780c13516..85dd41c7db 100644 --- a/data/corefork.telegram.org/constructor/messages.searchResultsCalendar +++ b/data/corefork.telegram.org/constructor/messages.searchResultsCalendar @@ -2,12 +2,40 @@ - Page not found + messages.searchResultsCalendar - - + + - + @@ -36,10 +64,86 @@
- -

Page not found

+ +

messages.searchResultsCalendar

-
The page has not been saved
+

+ +
+
messages.searchResultsCalendar#147ee23c flags:# inexact:flags.0?true count:int min_date:int min_msg_id:int offset_id_offset:flags.1?int periods:Vector<SearchResultsCalendarPeriod> messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = messages.SearchResultsCalendar;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
inexactflags.0?true 
countint 
min_dateint 
min_msg_idint 
offset_id_offsetflags.1?int 
periodsVector<SearchResultsCalendarPeriod> 
messagesVector<Message> 
chatsVector<Chat> 
usersVector<User> 
+

Type

+

messages.SearchResultsCalendar

diff --git a/data/corefork.telegram.org/constructor/messages.searchResultsPositions b/data/corefork.telegram.org/constructor/messages.searchResultsPositions index 0780c13516..54b21f8ef3 100644 --- a/data/corefork.telegram.org/constructor/messages.searchResultsPositions +++ b/data/corefork.telegram.org/constructor/messages.searchResultsPositions @@ -2,12 +2,34 @@ - Page not found + messages.searchResultsPositions - - + + - + @@ -36,10 +58,46 @@
- -

Page not found

+ +

messages.searchResultsPositions

-
The page has not been saved
+

+ +
+
messages.searchResultsPositions#53b22baf count:int positions:Vector<SearchResultsPosition> = messages.SearchResultsPositions;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
countint 
positionsVector<SearchResultsPosition> 
+

Type

+

messages.SearchResultsPositions

diff --git a/data/corefork.telegram.org/constructor/messages.stickerSetNotModified b/data/corefork.telegram.org/constructor/messages.stickerSetNotModified index 0780c13516..44446a1920 100644 --- a/data/corefork.telegram.org/constructor/messages.stickerSetNotModified +++ b/data/corefork.telegram.org/constructor/messages.stickerSetNotModified @@ -2,12 +2,18 @@ - Page not found + messages.stickerSetNotModified - - + + - + @@ -36,10 +42,26 @@
- -

Page not found

+ +

messages.stickerSetNotModified

-
The page has not been saved
+

+ +
+
messages.stickerSetNotModified#d3f924eb = messages.StickerSet;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

messages.StickerSet

diff --git a/data/corefork.telegram.org/constructor/messages.translateNoResult b/data/corefork.telegram.org/constructor/messages.translateNoResult index 0780c13516..685f587692 100644 --- a/data/corefork.telegram.org/constructor/messages.translateNoResult +++ b/data/corefork.telegram.org/constructor/messages.translateNoResult @@ -2,12 +2,18 @@ - Page not found + messages.translateNoResult - - + + - + @@ -36,10 +42,26 @@
- -

Page not found

+ +

messages.translateNoResult

-
The page has not been saved
+

+ +
+
messages.translateNoResult#67ca4737 = messages.TranslatedText;

+

Parameters

+

This constructor does not require any parameters.

+

Type

+

messages.TranslatedText

diff --git a/data/corefork.telegram.org/constructor/messages.translateResultText b/data/corefork.telegram.org/constructor/messages.translateResultText index 0780c13516..3bfb97d78d 100644 --- a/data/corefork.telegram.org/constructor/messages.translateResultText +++ b/data/corefork.telegram.org/constructor/messages.translateResultText @@ -2,12 +2,28 @@ - Page not found + messages.translateResultText - - + + - + @@ -36,10 +52,41 @@
- -

Page not found

+ +

messages.translateResultText

-
The page has not been saved
+

+ +
+
messages.translateResultText#a214f7d0 text:string = messages.TranslatedText;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
textstring 
+

Type

+

messages.TranslatedText

diff --git a/data/corefork.telegram.org/constructor/peerSettings.html b/data/corefork.telegram.org/constructor/peerSettings.html index f351b0babc..c4b351bdf5 100644 --- a/data/corefork.telegram.org/constructor/peerSettings.html +++ b/data/corefork.telegram.org/constructor/peerSettings.html @@ -109,10 +109,25 @@ Whether we can invite members to a group or channel +request_chat_broadcast +flags.10?true +  + + geo_distance flags.6?int Distance in meters between us and this peer + +request_chat_title +flags.9?string +  + + +request_chat_date +flags.9?int +  +

Type

diff --git a/data/corefork.telegram.org/constructor/searchResultPosition.html b/data/corefork.telegram.org/constructor/searchResultPosition.html index 0780c13516..3e5d9761c4 100644 --- a/data/corefork.telegram.org/constructor/searchResultPosition.html +++ b/data/corefork.telegram.org/constructor/searchResultPosition.html @@ -2,12 +2,40 @@ - Page not found + searchResultPosition - - + + - + @@ -36,10 +64,51 @@
- -

Page not found

+ +

searchResultPosition

-
The page has not been saved
+

+ +
+
searchResultPosition#7f648b67 msg_id:int date:int offset:int = SearchResultsPosition;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
msg_idint 
dateint 
offsetint 
+

Type

+

SearchResultsPosition

diff --git a/data/corefork.telegram.org/constructor/searchResultsCalendarPeriod.html b/data/corefork.telegram.org/constructor/searchResultsCalendarPeriod.html index 0780c13516..f3d7b39cfd 100644 --- a/data/corefork.telegram.org/constructor/searchResultsCalendarPeriod.html +++ b/data/corefork.telegram.org/constructor/searchResultsCalendarPeriod.html @@ -2,12 +2,46 @@ - Page not found + searchResultsCalendarPeriod - - + + - + @@ -36,10 +70,56 @@
- -

Page not found

+ +

searchResultsCalendarPeriod

-
The page has not been saved
+

+ +
+
searchResultsCalendarPeriod#c9b0539f date:int min_msg_id:int max_msg_id:int count:int = SearchResultsCalendarPeriod;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
dateint 
min_msg_idint 
max_msg_idint 
countint 
+

Type

+

SearchResultsCalendarPeriod

diff --git a/data/corefork.telegram.org/constructor/sponsoredMessage.html b/data/corefork.telegram.org/constructor/sponsoredMessage.html index e787c867a3..e00383de52 100644 --- a/data/corefork.telegram.org/constructor/sponsoredMessage.html +++ b/data/corefork.telegram.org/constructor/sponsoredMessage.html @@ -4,10 +4,10 @@ sponsoredMessage - + - + @@ -53,56 +53,68 @@
sponsoredMessage#3a836df8 flags:# random_id:bytes from_id:flags.3?Peer chat_invite:flags.4?ChatInvite chat_invite_hash:flags.4?string channel_post:flags.2?int start_param:flags.0?string message:string entities:flags.1?Vector<MessageEntity> = SponsoredMessage;

-

Parameters

+

Parameters

- + - + - + - + + + + + + + + + + + + + + + + - + - + - +
NameTypeType Description
flags## Flags, see TL conditional fields
random_idbytesbytes Message ID
from_idPeerflags.3?Peer ID of the sender of the message
chat_inviteflags.4?ChatInvite 
chat_invite_hashflags.4?string 
channel_postflags.2?int 
start_paramflags.0?stringflags.0?string Parameter for the bot start message if the sponsored chat is a chat with a bot.
messagestringstring Sponsored message
entitiesflags.1?Vector<MessageEntity>flags.1?Vector<MessageEntity> Message entities for styled text
-

Type

+

Type

SponsoredMessage

-

Related pages

-

Sponsored messages

-

How to implement sponsored messages

-

Styled text with message entities

-

How to create styled text with message entities

-
+

Related pages

+

Styled text with message entities

+

How to create styled text with message entities

diff --git a/data/corefork.telegram.org/constructor/stickerSet.html b/data/corefork.telegram.org/constructor/stickerSet.html index f453513533..7f5d33b240 100644 --- a/data/corefork.telegram.org/constructor/stickerSet.html +++ b/data/corefork.telegram.org/constructor/stickerSet.html @@ -89,6 +89,11 @@ Is this an animated stickerpack +videos +flags.6?true +  + + installed_date flags.0?int When was this stickerset installed diff --git a/data/corefork.telegram.org/constructor/theme.html b/data/corefork.telegram.org/constructor/theme.html index 545c1ad675..6158a34543 100644 --- a/data/corefork.telegram.org/constructor/theme.html +++ b/data/corefork.telegram.org/constructor/theme.html @@ -81,7 +81,7 @@ for_chat flags.5?true -Whether this theme is meant to be used as a chat theme +Whether this theme is meant to be used as a chat theme id @@ -110,10 +110,15 @@ settings -flags.3?ThemeSettings +flags.3?Vector<ThemeSettings> Theme settings +emoticon +flags.6?string +  + + installs_count flags.4?int Installation count diff --git a/data/corefork.telegram.org/constructor/updateBotChatInviteRequester.html b/data/corefork.telegram.org/constructor/updateBotChatInviteRequester.html index 0780c13516..789bd0bd72 100644 --- a/data/corefork.telegram.org/constructor/updateBotChatInviteRequester.html +++ b/data/corefork.telegram.org/constructor/updateBotChatInviteRequester.html @@ -2,12 +2,52 @@ - Page not found + updateBotChatInviteRequester - - + + - + @@ -36,10 +76,66 @@
- -

Page not found

+ +

updateBotChatInviteRequester

-
The page has not been saved
+

+ +
+
updateBotChatInviteRequester#11dfa986 peer:Peer date:int user_id:long about:string invite:ExportedChatInvite qts:int = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
peerPeer 
dateint 
user_idlong 
aboutstring 
inviteExportedChatInvite 
qtsint 
+

Type

+

Update

diff --git a/data/corefork.telegram.org/constructor/updatePendingJoinRequests.html b/data/corefork.telegram.org/constructor/updatePendingJoinRequests.html index 0780c13516..33daa5a1de 100644 --- a/data/corefork.telegram.org/constructor/updatePendingJoinRequests.html +++ b/data/corefork.telegram.org/constructor/updatePendingJoinRequests.html @@ -2,12 +2,40 @@ - Page not found + updatePendingJoinRequests - - + + - + @@ -36,10 +64,51 @@
- -

Page not found

+ +

updatePendingJoinRequests

-
The page has not been saved
+

+ +
+
updatePendingJoinRequests#7063c3db peer:Peer requests_pending:int recent_requesters:Vector<long> = Update;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
peerPeer 
requests_pendingint 
recent_requestersVector<long> 
+

Type

+

Update

diff --git a/data/corefork.telegram.org/constructor/userFull.html b/data/corefork.telegram.org/constructor/userFull.html index e6d04d9e6f..d4fb868498 100644 --- a/data/corefork.telegram.org/constructor/userFull.html +++ b/data/corefork.telegram.org/constructor/userFull.html @@ -99,9 +99,9 @@ Whether the user can receive video calls -user -User -Remaining user info +id +longabout @@ -153,6 +153,11 @@ flags.15?string Emoji associated with chat theme + +private_forward_name +flags.16?string +  +

Type

diff --git a/data/corefork.telegram.org/constructor/users.userFull b/data/corefork.telegram.org/constructor/users.userFull index 0780c13516..0bb2a14a24 100644 --- a/data/corefork.telegram.org/constructor/users.userFull +++ b/data/corefork.telegram.org/constructor/users.userFull @@ -2,12 +2,40 @@ - Page not found + users.userFull - - + + - + @@ -36,10 +64,51 @@
- -

Page not found

+ +

users.userFull

-
The page has not been saved
+

+ +
+
users.userFull#3b6d152e full_user:UserFull chats:Vector<Chat> users:Vector<User> = users.UserFull;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
full_userUserFull 
chatsVector<Chat> 
usersVector<User> 
+

Type

+

users.UserFull

diff --git a/data/corefork.telegram.org/method/account.changeAuthorizationSettings b/data/corefork.telegram.org/method/account.changeAuthorizationSettings index 17d64ffaf0..5afc64e86a 100644 --- a/data/corefork.telegram.org/method/account.changeAuthorizationSettings +++ b/data/corefork.telegram.org/method/account.changeAuthorizationSettings @@ -2,12 +2,34 @@ - Page not found + account.changeAuthorizationSettings - - + + - + @@ -36,10 +58,60 @@
- -

Page not found

+ +

account.changeAuthorizationSettings

-
The page has not been saved
+

+ +
+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+account.changeAuthorizationSettings#40f48462 flags:# hash:long encrypted_requests_disabled:flags.0?Bool call_requests_disabled:flags.1?Bool = Bool;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
hashlong 
encrypted_requests_disabledflags.0?Bool 
call_requests_disabledflags.1?Bool 
+

Result

+

Bool

+

Bots can use this method

diff --git a/data/corefork.telegram.org/method/account.changePhone b/data/corefork.telegram.org/method/account.changePhone index 37722b2281..72ff282be4 100644 --- a/data/corefork.telegram.org/method/account.changePhone +++ b/data/corefork.telegram.org/method/account.changePhone @@ -102,6 +102,11 @@ 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). + + +400 PHONE_NUMBER_INVALID The phone number is invalid. diff --git a/data/corefork.telegram.org/method/account.createTheme b/data/corefork.telegram.org/method/account.createTheme index 18a88bc4da..7735ded5ae 100644 --- a/data/corefork.telegram.org/method/account.createTheme +++ b/data/corefork.telegram.org/method/account.createTheme @@ -87,7 +87,7 @@ settings -flags.3?InputThemeSettings +flags.3?Vector<InputThemeSettings> Theme settings diff --git a/data/corefork.telegram.org/method/account.getChatThemes b/data/corefork.telegram.org/method/account.getChatThemes index 0d553b5f1a..2b2bd5d238 100644 --- a/data/corefork.telegram.org/method/account.getChatThemes +++ b/data/corefork.telegram.org/method/account.getChatThemes @@ -68,7 +68,7 @@ hash -int +long Hash for pagination, for more info click here diff --git a/data/corefork.telegram.org/method/account.installTheme b/data/corefork.telegram.org/method/account.installTheme index 0b8df44fe4..2bb51e2c0a 100644 --- a/data/corefork.telegram.org/method/account.installTheme +++ b/data/corefork.telegram.org/method/account.installTheme @@ -77,15 +77,20 @@ Whether to install the dark version -format -flags.1?string -Theme format, a string that identifies the theming engines supported by the client - - theme flags.1?InputTheme Theme to install + +format +flags.2?string +Theme format, a string that identifies the theming engines supported by the client + + +base_theme +flags.3?BaseTheme +  +

Result

diff --git a/data/corefork.telegram.org/method/account.saveAutoDownloadSettings b/data/corefork.telegram.org/method/account.saveAutoDownloadSettings index ec64d0f2b7..8761953f8a 100644 --- a/data/corefork.telegram.org/method/account.saveAutoDownloadSettings +++ b/data/corefork.telegram.org/method/account.saveAutoDownloadSettings @@ -56,41 +56,40 @@ boolTrue#997275b5 = Bool; ---functions--- account.saveAutoDownloadSettings#76f36233 flags:# low:flags.0?true high:flags.1?true settings:AutoDownloadSettings = Bool;

-

Parameters

+

Parameters

- + - + - + - + - +
NameTypeType Description
flags## Flags, see TL conditional fields
lowflags.0?trueflags.0?true Whether to save media in the low data usage preset
highflags.1?trueflags.1?true Whether to save media in the high data usage preset
settingsAutoDownloadSettingsAutoDownloadSettings Media autodownload settings
-

Result

-

Bool

-
+

Result

+

Bool

diff --git a/data/corefork.telegram.org/method/account.setAuthorizationTTL b/data/corefork.telegram.org/method/account.setAuthorizationTTL index 17d64ffaf0..579c583637 100644 --- a/data/corefork.telegram.org/method/account.setAuthorizationTTL +++ b/data/corefork.telegram.org/method/account.setAuthorizationTTL @@ -2,12 +2,30 @@ - Page not found + account.setAuthorizationTTL - - + + - + @@ -36,10 +54,45 @@
- -

Page not found

+ +

account.setAuthorizationTTL

-
The page has not been saved
+

+ +
+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+account.setAuthorizationTTL#bf899aa0 authorization_ttl_days:int = Bool;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
authorization_ttl_daysint 
+

Result

+

Bool

+

Bots can use this method

diff --git a/data/corefork.telegram.org/method/account.updateTheme b/data/corefork.telegram.org/method/account.updateTheme index 2e5cc50ea7..d10b175ede 100644 --- a/data/corefork.telegram.org/method/account.updateTheme +++ b/data/corefork.telegram.org/method/account.updateTheme @@ -97,7 +97,7 @@ settings -flags.3?InputThemeSettings +flags.3?Vector<InputThemeSettings> Theme settings diff --git a/data/corefork.telegram.org/method/auth.signIn b/data/corefork.telegram.org/method/auth.signIn index 9d6af35ed2..6c753a9c48 100644 --- a/data/corefork.telegram.org/method/auth.signIn +++ b/data/corefork.telegram.org/method/auth.signIn @@ -120,6 +120,11 @@ 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. +

Query example

diff --git a/data/corefork.telegram.org/method/channels.deleteParticipantHistory b/data/corefork.telegram.org/method/channels.deleteParticipantHistory index 17d64ffaf0..f150c4e8c4 100644 --- a/data/corefork.telegram.org/method/channels.deleteParticipantHistory +++ b/data/corefork.telegram.org/method/channels.deleteParticipantHistory @@ -2,12 +2,36 @@ - Page not found + channels.deleteParticipantHistory - - + + - + @@ -36,10 +60,49 @@
- -

Page not found

+ +

channels.deleteParticipantHistory

-
The page has not been saved
+

+ +
+
messages.affectedHistory#b45c69d1 pts:int pts_count:int offset:int = messages.AffectedHistory;
+---functions---
+channels.deleteParticipantHistory#367544db channel:InputChannel participant:InputPeer = messages.AffectedHistory;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
channelInputChannel 
participantInputPeer 
+

Result

+

messages.AffectedHistory

+

Bots can use this method

diff --git a/data/corefork.telegram.org/method/channels.getSendAs b/data/corefork.telegram.org/method/channels.getSendAs index 17d64ffaf0..fd202656be 100644 --- a/data/corefork.telegram.org/method/channels.getSendAs +++ b/data/corefork.telegram.org/method/channels.getSendAs @@ -2,12 +2,30 @@ - Page not found + channels.getSendAs - - + + - + @@ -36,10 +54,44 @@
- -

Page not found

+ +

channels.getSendAs

-
The page has not been saved
+

+ +
+
channels.sendAsPeers#8356cda9 peers:Vector<Peer> chats:Vector<Chat> users:Vector<User> = channels.SendAsPeers;
+---functions---
+channels.getSendAs#dc770ee peer:InputPeer = channels.SendAsPeers;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
peerInputPeer 
+

Result

+

channels.SendAsPeers

+

Bots can use this method

diff --git a/data/corefork.telegram.org/method/channels.getSponsoredMessages b/data/corefork.telegram.org/method/channels.getSponsoredMessages index b2bdf67577..6bfb6552aa 100644 --- a/data/corefork.telegram.org/method/channels.getSponsoredMessages +++ b/data/corefork.telegram.org/method/channels.getSponsoredMessages @@ -55,30 +55,26 @@
messages.sponsoredMessages#65a4c7d5 messages:Vector<SponsoredMessage> chats:Vector<Chat> users:Vector<User> = messages.SponsoredMessages;
 ---functions---
 channels.getSponsoredMessages#ec210fbf channel:InputChannel = messages.SponsoredMessages;

-

Parameters

+

Parameters

- + - +
NameTypeType Description
channelInputChannelInputChannel Peer
-

Result

+

Result

messages.SponsoredMessages

-
-

Related pages

-

Sponsored messages

-

How to implement sponsored messages

-
+
diff --git a/data/corefork.telegram.org/method/channels.joinChannel b/data/corefork.telegram.org/method/channels.joinChannel index 5e58948575..6f7ccaf5ce 100644 --- a/data/corefork.telegram.org/method/channels.joinChannel +++ b/data/corefork.telegram.org/method/channels.joinChannel @@ -127,6 +127,11 @@ 400 +INVITE_REQUEST_SENT +  + + +400 MSG_ID_INVALID Invalid message ID provided. diff --git a/data/corefork.telegram.org/method/channels.reportSpam b/data/corefork.telegram.org/method/channels.reportSpam index 5f5a2f128a..d96a570957 100644 --- a/data/corefork.telegram.org/method/channels.reportSpam +++ b/data/corefork.telegram.org/method/channels.reportSpam @@ -72,9 +72,9 @@ Supergroup -user_id -InputUser -ID of the user that sent the spam messages +participant +InputPeerid diff --git a/data/corefork.telegram.org/method/channels.viewSponsoredMessage b/data/corefork.telegram.org/method/channels.viewSponsoredMessage index 97127bf80f..a7d49baa13 100644 --- a/data/corefork.telegram.org/method/channels.viewSponsoredMessage +++ b/data/corefork.telegram.org/method/channels.viewSponsoredMessage @@ -56,31 +56,31 @@ boolTrue#997275b5 = Bool; ---functions--- channels.viewSponsoredMessage#beaedb94 channel:InputChannel random_id:bytes = Bool;

-

Parameters

+

Parameters

- + - + - +
NameTypeType Description
channelInputChannelInputChannel Peer
random_idbytesbytes Message ID
-

Result

+

Result

Bool

-

Possible errors

+

Possible errors

@@ -97,11 +97,8 @@
-
-

Related pages

-

Sponsored messages

-

How to implement sponsored messages

-
+

Errors

+
diff --git a/data/corefork.telegram.org/method/messages.deleteChat b/data/corefork.telegram.org/method/messages.deleteChat index 5b24a20134..f566b8e554 100644 --- a/data/corefork.telegram.org/method/messages.deleteChat +++ b/data/corefork.telegram.org/method/messages.deleteChat @@ -87,6 +87,11 @@ 400 +CHAT_ID_INVALID +The provided chat id is invalid. + + +400 PEER_ID_INVALID The provided peer id is invalid. diff --git a/data/corefork.telegram.org/method/messages.deleteHistory b/data/corefork.telegram.org/method/messages.deleteHistory index 48a66a1d59..593ddf9735 100644 --- a/data/corefork.telegram.org/method/messages.deleteHistory +++ b/data/corefork.telegram.org/method/messages.deleteHistory @@ -90,6 +90,16 @@ int Maximum ID of message to delete + +min_date +flags.2?int +  + + +max_date +flags.3?int +  +

Result

diff --git a/data/corefork.telegram.org/method/messages.editExportedChatInvite b/data/corefork.telegram.org/method/messages.editExportedChatInvite index bd8e093c4f..a955bd7360 100644 --- a/data/corefork.telegram.org/method/messages.editExportedChatInvite +++ b/data/corefork.telegram.org/method/messages.editExportedChatInvite @@ -96,6 +96,16 @@ flags.1?int Maximum number of users that can join using this link + +request_needed +flags.3?Bool +  + + +title +flags.4?string +  +

Result

diff --git a/data/corefork.telegram.org/method/messages.exportChatInvite b/data/corefork.telegram.org/method/messages.exportChatInvite index 19c5969170..7bc744cb39 100644 --- a/data/corefork.telegram.org/method/messages.exportChatInvite +++ b/data/corefork.telegram.org/method/messages.exportChatInvite @@ -76,6 +76,11 @@ Legacy flag, reproducing legacy behavior of this method: if set, revokes all previous links before creating a new one. Kept for bot API BC, should not be used by modern clients. +request_needed +flags.3?true +  + + peer InputPeer Chat @@ -90,6 +95,11 @@ flags.1?int Maximum number of users that can join using this link + +title +flags.4?string +  +

Result

diff --git a/data/corefork.telegram.org/method/messages.forwardMessages b/data/corefork.telegram.org/method/messages.forwardMessages index 2b558b304f..8727df4f20 100644 --- a/data/corefork.telegram.org/method/messages.forwardMessages +++ b/data/corefork.telegram.org/method/messages.forwardMessages @@ -102,6 +102,11 @@ Whether to strip captions from media +noforwards +flags.14?true +  + + from_peer InputPeer Source of messages @@ -126,6 +131,11 @@ flags.10?int Scheduled message date for scheduled messages + +send_as +flags.13?InputPeer +  +

Result

@@ -257,6 +267,11 @@ 400 +SEND_AS_PEER_INVALID +You can't send messages as the specified peer. + + +400 SLOWMODE_MULTI_MSGS_DISABLED Slowmode is enabled, you cannot forward multiple messages to this group. diff --git a/data/corefork.telegram.org/method/messages.getAdminsWithInvites b/data/corefork.telegram.org/method/messages.getAdminsWithInvites index 43c0a7bfc5..0674fba21f 100644 --- a/data/corefork.telegram.org/method/messages.getAdminsWithInvites +++ b/data/corefork.telegram.org/method/messages.getAdminsWithInvites @@ -73,7 +73,29 @@

Result

-

messages.ChatAdminsWithInvites

+

messages.ChatAdminsWithInvites

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400CHAT_ADMIN_REQUIREDYou must be an admin in this chat to do this.
403CHAT_WRITE_FORBIDDENYou can't write in this chat.
diff --git a/data/corefork.telegram.org/method/messages.getAvailableReactions b/data/corefork.telegram.org/method/messages.getAvailableReactions index 17d64ffaf0..fa93254446 100644 --- a/data/corefork.telegram.org/method/messages.getAvailableReactions +++ b/data/corefork.telegram.org/method/messages.getAvailableReactions @@ -2,12 +2,30 @@ - Page not found + messages.getAvailableReactions - - + + - + @@ -36,10 +54,45 @@
- -

Page not found

+ +

messages.getAvailableReactions

-
The page has not been saved
+

+ +
+
messages.availableReactionsNotModified#9f071957 = messages.AvailableReactions;
+messages.availableReactions#768e3aad hash:int reactions:Vector<AvailableReaction> = messages.AvailableReactions;
+---functions---
+messages.getAvailableReactions#18dea0ac hash:int = messages.AvailableReactions;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
hashint 
+

Result

+

messages.AvailableReactions

+

Bots can use this method

diff --git a/data/corefork.telegram.org/method/messages.getChatInviteImporters b/data/corefork.telegram.org/method/messages.getChatInviteImporters index e684d01121..f7609d765f 100644 --- a/data/corefork.telegram.org/method/messages.getChatInviteImporters +++ b/data/corefork.telegram.org/method/messages.getChatInviteImporters @@ -66,16 +66,31 @@ +flags +# +Flags, see TL conditional fields + + +requested +flags.0?true +  + + peer InputPeer Chat link -string +flags.1?string Invite link +q +flags.2?string +  + + offset_date int Offsets for pagination, for more info click here @@ -94,6 +109,23 @@

Result

messages.ChatInviteImporters

+

Possible errors

+ + + + + + + + + + + + + + + +
CodeTypeDescription
400CHAT_ADMIN_REQUIREDYou must be an admin in this chat to do this.

Related pages

Pagination in the API

How to fetch results from large lists of objects.

diff --git a/data/corefork.telegram.org/method/messages.getExportedChatInvites b/data/corefork.telegram.org/method/messages.getExportedChatInvites index 397ac8c5e4..de67189d1f 100644 --- a/data/corefork.telegram.org/method/messages.getExportedChatInvites +++ b/data/corefork.telegram.org/method/messages.getExportedChatInvites @@ -104,6 +104,28 @@

Result

messages.ExportedChatInvites

+

Possible errors

+ + + + + + + + + + + + + + + + + + + + +
CodeTypeDescription
400ADMIN_ID_INVALIDThe specified admin ID is invalid.
400CHAT_ADMIN_REQUIREDYou must be an admin in this chat to do this.

Related pages

Pagination in the API

How to fetch results from large lists of objects.

diff --git a/data/corefork.telegram.org/method/messages.getOnlines b/data/corefork.telegram.org/method/messages.getOnlines index 42a946da25..37eb283c09 100644 --- a/data/corefork.telegram.org/method/messages.getOnlines +++ b/data/corefork.telegram.org/method/messages.getOnlines @@ -91,6 +91,11 @@ 400 +CHAT_ID_INVALID +The provided chat 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 17d64ffaf0..2e33166462 100644 --- a/data/corefork.telegram.org/method/messages.getSearchResultsCalendar +++ b/data/corefork.telegram.org/method/messages.getSearchResultsCalendar @@ -2,12 +2,46 @@ - Page not found + messages.getSearchResultsCalendar - - + + - + @@ -36,10 +70,59 @@
- -

Page not found

+ +

messages.getSearchResultsCalendar

-
The page has not been saved
+

+ +
+
messages.searchResultsCalendar#147ee23c flags:# inexact:flags.0?true count:int min_date:int min_msg_id:int offset_id_offset:flags.1?int periods:Vector<SearchResultsCalendarPeriod> messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = messages.SearchResultsCalendar;
+---functions---
+messages.getSearchResultsCalendar#49f0bde9 peer:InputPeer filter:MessagesFilter offset_id:int offset_date:int = messages.SearchResultsCalendar;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
peerInputPeer 
filterMessagesFilter 
offset_idint 
offset_dateint 
+

Result

+

messages.SearchResultsCalendar

+

Bots can use this method

diff --git a/data/corefork.telegram.org/method/messages.getSearchResultsPositions b/data/corefork.telegram.org/method/messages.getSearchResultsPositions index 17d64ffaf0..35758e3a95 100644 --- a/data/corefork.telegram.org/method/messages.getSearchResultsPositions +++ b/data/corefork.telegram.org/method/messages.getSearchResultsPositions @@ -2,12 +2,46 @@ - Page not found + messages.getSearchResultsPositions - - + + - + @@ -36,10 +70,59 @@
- -

Page not found

+ +

messages.getSearchResultsPositions

-
The page has not been saved
+

+ +
+
messages.searchResultsPositions#53b22baf count:int positions:Vector<SearchResultsPosition> = messages.SearchResultsPositions;
+---functions---
+messages.getSearchResultsPositions#6e9583a3 peer:InputPeer filter:MessagesFilter offset_id:int limit:int = messages.SearchResultsPositions;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
peerInputPeer 
filterMessagesFilter 
offset_idint 
limitint 
+

Result

+

messages.SearchResultsPositions

+

Bots can use this method

diff --git a/data/corefork.telegram.org/method/messages.getStickerSet b/data/corefork.telegram.org/method/messages.getStickerSet index 86e949726f..bb7fdc7fe5 100644 --- a/data/corefork.telegram.org/method/messages.getStickerSet +++ b/data/corefork.telegram.org/method/messages.getStickerSet @@ -71,6 +71,11 @@ InputStickerSet Stickerset + +hash +int +  +

Result

diff --git a/data/corefork.telegram.org/method/messages.getUnreadReactions b/data/corefork.telegram.org/method/messages.getUnreadReactions index 17d64ffaf0..9f0a9b5711 100644 --- a/data/corefork.telegram.org/method/messages.getUnreadReactions +++ b/data/corefork.telegram.org/method/messages.getUnreadReactions @@ -2,12 +2,52 @@ - Page not found + messages.getUnreadReactions - - + + - + @@ -36,10 +76,72 @@
- -

Page not found

+ +

messages.getUnreadReactions

-
The page has not been saved
+

+ +
+
messages.messages#8c718e87 messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = messages.Messages;
+messages.messagesSlice#3a54685e flags:# inexact:flags.1?true count:int next_rate:flags.0?int offset_id_offset:flags.2?int messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = messages.Messages;
+messages.channelMessages#64479808 flags:# inexact:flags.1?true pts:int count:int offset_id_offset:flags.2?int messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = messages.Messages;
+messages.messagesNotModified#74535f21 count:int = messages.Messages;
+---functions---
+messages.getUnreadReactions#e85bae1a peer:InputPeer offset_id:int add_offset:int limit:int max_id:int min_id:int = messages.Messages;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
peerInputPeer 
offset_idint 
add_offsetint 
limitint 
max_idint 
min_idint 
+

Result

+

messages.Messages

+

Bots can use this method

diff --git a/data/corefork.telegram.org/method/messages.hideAllChatJoinRequests b/data/corefork.telegram.org/method/messages.hideAllChatJoinRequests index 17d64ffaf0..f00ac2d706 100644 --- a/data/corefork.telegram.org/method/messages.hideAllChatJoinRequests +++ b/data/corefork.telegram.org/method/messages.hideAllChatJoinRequests @@ -2,12 +2,38 @@ - Page not found + messages.hideAllChatJoinRequests - - + + - + @@ -36,10 +62,65 @@
- -

Page not found

+ +

messages.hideAllChatJoinRequests

-
The page has not been saved
+

+ +
+
updatesTooLong#e317af7e = Updates;
+updateShortMessage#313bc7f8 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int user_id:long message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?long reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> ttl_period:flags.25?int = Updates;
+updateShortChatMessage#4d6deea5 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int from_id:long chat_id:long message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?long reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> ttl_period:flags.25?int = Updates;
+updateShort#78d4dec1 update:Update date:int = Updates;
+updatesCombined#725b04c3 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq_start:int seq:int = Updates;
+updates#74ae4240 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq:int = Updates;
+updateShortSentMessage#9015e101 flags:# out:flags.1?true id:int pts:int pts_count:int date:int media:flags.9?MessageMedia entities:flags.7?Vector<MessageEntity> ttl_period:flags.25?int = Updates;
+---functions---
+messages.hideAllChatJoinRequests#e085f4ea flags:# approved:flags.0?true peer:InputPeer link:flags.1?string = Updates;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
approvedflags.0?true 
peerInputPeer 
linkflags.1?string 
+

Result

+

Updates

+

Bots can use this method

diff --git a/data/corefork.telegram.org/method/messages.hideChatJoinRequest b/data/corefork.telegram.org/method/messages.hideChatJoinRequest index 17d64ffaf0..ab1f657942 100644 --- a/data/corefork.telegram.org/method/messages.hideChatJoinRequest +++ b/data/corefork.telegram.org/method/messages.hideChatJoinRequest @@ -2,12 +2,38 @@ - Page not found + messages.hideChatJoinRequest - - + + - + @@ -36,10 +62,65 @@
- -

Page not found

+ +

messages.hideChatJoinRequest

-
The page has not been saved
+

+ +
+
updatesTooLong#e317af7e = Updates;
+updateShortMessage#313bc7f8 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int user_id:long message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?long reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> ttl_period:flags.25?int = Updates;
+updateShortChatMessage#4d6deea5 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int from_id:long chat_id:long message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?long reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> ttl_period:flags.25?int = Updates;
+updateShort#78d4dec1 update:Update date:int = Updates;
+updatesCombined#725b04c3 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq_start:int seq:int = Updates;
+updates#74ae4240 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq:int = Updates;
+updateShortSentMessage#9015e101 flags:# out:flags.1?true id:int pts:int pts_count:int date:int media:flags.9?MessageMedia entities:flags.7?Vector<MessageEntity> ttl_period:flags.25?int = Updates;
+---functions---
+messages.hideChatJoinRequest#7fe7e815 flags:# approved:flags.0?true peer:InputPeer user_id:InputUser = Updates;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
approvedflags.0?true 
peerInputPeer 
user_idInputUser 
+

Result

+

Updates

+

Bots can use this method

diff --git a/data/corefork.telegram.org/method/messages.importChatInvite b/data/corefork.telegram.org/method/messages.importChatInvite index 2d9c45b648..8de56011ba 100644 --- a/data/corefork.telegram.org/method/messages.importChatInvite +++ b/data/corefork.telegram.org/method/messages.importChatInvite @@ -127,6 +127,11 @@ 400 +INVITE_REQUEST_SENT +  + + +400 MSG_ID_INVALID Invalid message ID provided. diff --git a/data/corefork.telegram.org/method/messages.readReactions b/data/corefork.telegram.org/method/messages.readReactions index 17d64ffaf0..c78b934815 100644 --- a/data/corefork.telegram.org/method/messages.readReactions +++ b/data/corefork.telegram.org/method/messages.readReactions @@ -2,12 +2,30 @@ - Page not found + messages.readReactions - - + + - + @@ -36,10 +54,44 @@
- -

Page not found

+ +

messages.readReactions

-
The page has not been saved
+

+ +
+
messages.affectedHistory#b45c69d1 pts:int pts_count:int offset:int = messages.AffectedHistory;
+---functions---
+messages.readReactions#82e251d7 peer:InputPeer = messages.AffectedHistory;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
peerInputPeer 
+

Result

+

messages.AffectedHistory

+

Bots can use this method

diff --git a/data/corefork.telegram.org/method/messages.saveDefaultSendAs b/data/corefork.telegram.org/method/messages.saveDefaultSendAs index 17d64ffaf0..995e2e4f57 100644 --- a/data/corefork.telegram.org/method/messages.saveDefaultSendAs +++ b/data/corefork.telegram.org/method/messages.saveDefaultSendAs @@ -2,12 +2,36 @@ - Page not found + messages.saveDefaultSendAs - - + + - + @@ -36,10 +60,50 @@
- -

Page not found

+ +

messages.saveDefaultSendAs

-
The page has not been saved
+

+ +
+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+messages.saveDefaultSendAs#ccfddf96 peer:InputPeer send_as:InputPeer = Bool;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
peerInputPeer 
send_asInputPeer 
+

Result

+

Bool

+

Bots can use this method

diff --git a/data/corefork.telegram.org/method/messages.sendEncrypted b/data/corefork.telegram.org/method/messages.sendEncrypted index 54956fc117..6159d0b23b 100644 --- a/data/corefork.telegram.org/method/messages.sendEncrypted +++ b/data/corefork.telegram.org/method/messages.sendEncrypted @@ -117,6 +117,11 @@ 400 +DATA_TOO_LONG +Data too long. + + +400 ENCRYPTION_DECLINED The secret chat was declined. diff --git a/data/corefork.telegram.org/method/messages.sendInlineBotResult b/data/corefork.telegram.org/method/messages.sendInlineBotResult index 20f24981c3..b112d788dd 100644 --- a/data/corefork.telegram.org/method/messages.sendInlineBotResult +++ b/data/corefork.telegram.org/method/messages.sendInlineBotResult @@ -126,6 +126,11 @@ flags.10?int Scheduled message date for scheduled messages + +send_as +flags.13?InputPeer +  +

Result

diff --git a/data/corefork.telegram.org/method/messages.sendMedia b/data/corefork.telegram.org/method/messages.sendMedia index c126186ba0..e9648ce8d1 100644 --- a/data/corefork.telegram.org/method/messages.sendMedia +++ b/data/corefork.telegram.org/method/messages.sendMedia @@ -92,6 +92,11 @@ Clear the draft +noforwards +flags.14?true +  + + peer InputPeer Destination @@ -131,6 +136,11 @@ flags.10?int Scheduled message date for scheduled messages + +send_as +flags.13?InputPeer +  +

Result

@@ -391,6 +401,11 @@ There are too many scheduled messages. +400 +SEND_AS_PEER_INVALID +You can't send messages as the specified peer. + + 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. diff --git a/data/corefork.telegram.org/method/messages.sendMessage b/data/corefork.telegram.org/method/messages.sendMessage index f65d5614e2..5a6cc5d5dc 100644 --- a/data/corefork.telegram.org/method/messages.sendMessage +++ b/data/corefork.telegram.org/method/messages.sendMessage @@ -97,6 +97,11 @@ Clear the draft field +noforwards +flags.14?true +  + + peer InputPeer The destination where the message will be sent @@ -131,6 +136,11 @@ flags.10?int Scheduled message date for scheduled messages + +send_as +flags.13?InputPeer +  +

Result

@@ -291,6 +301,11 @@ There are too many scheduled messages. +400 +SEND_AS_PEER_INVALID +You can't send messages as the specified peer. + + 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. diff --git a/data/corefork.telegram.org/method/messages.sendMultiMedia b/data/corefork.telegram.org/method/messages.sendMultiMedia index 8fb52a6c38..58d8e5d465 100644 --- a/data/corefork.telegram.org/method/messages.sendMultiMedia +++ b/data/corefork.telegram.org/method/messages.sendMultiMedia @@ -92,6 +92,11 @@ Whether to clear drafts +noforwards +flags.14?true +  + + peer InputPeer The destination chat @@ -111,6 +116,11 @@ flags.10?int Scheduled message date for scheduled messages + +send_as +flags.13?InputPeer +  +

Result

diff --git a/data/corefork.telegram.org/method/messages.sendReaction b/data/corefork.telegram.org/method/messages.sendReaction index 3de5238fa1..461ffabe00 100644 --- a/data/corefork.telegram.org/method/messages.sendReaction +++ b/data/corefork.telegram.org/method/messages.sendReaction @@ -77,6 +77,11 @@ Flags, see TL conditional fields +big +flags.1?true +  + + peer InputPeer Peer diff --git a/data/corefork.telegram.org/method/messages.setChatAvailableReactions b/data/corefork.telegram.org/method/messages.setChatAvailableReactions index 17d64ffaf0..a269519c6b 100644 --- a/data/corefork.telegram.org/method/messages.setChatAvailableReactions +++ b/data/corefork.telegram.org/method/messages.setChatAvailableReactions @@ -2,12 +2,36 @@ - Page not found + messages.setChatAvailableReactions - - + + - + @@ -36,10 +60,55 @@
- -

Page not found

+ +

messages.setChatAvailableReactions

-
The page has not been saved
+

+ +
+
updatesTooLong#e317af7e = Updates;
+updateShortMessage#313bc7f8 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int user_id:long message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?long reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> ttl_period:flags.25?int = Updates;
+updateShortChatMessage#4d6deea5 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int from_id:long chat_id:long message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?long reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> ttl_period:flags.25?int = Updates;
+updateShort#78d4dec1 update:Update date:int = Updates;
+updatesCombined#725b04c3 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq_start:int seq:int = Updates;
+updates#74ae4240 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq:int = Updates;
+updateShortSentMessage#9015e101 flags:# out:flags.1?true id:int pts:int pts_count:int date:int media:flags.9?MessageMedia entities:flags.7?Vector<MessageEntity> ttl_period:flags.25?int = Updates;
+---functions---
+messages.setChatAvailableReactions#14050ea6 peer:InputPeer available_reactions:Vector<string> = Updates;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
peerInputPeer 
available_reactionsVector<string> 
+

Result

+

Updates

+

Bots can use this method

diff --git a/data/corefork.telegram.org/method/messages.setDefaultReaction b/data/corefork.telegram.org/method/messages.setDefaultReaction index 17d64ffaf0..200a12e351 100644 --- a/data/corefork.telegram.org/method/messages.setDefaultReaction +++ b/data/corefork.telegram.org/method/messages.setDefaultReaction @@ -2,12 +2,30 @@ - Page not found + messages.setDefaultReaction - - + + - + @@ -36,10 +54,45 @@
- -

Page not found

+ +

messages.setDefaultReaction

-
The page has not been saved
+

+ +
+
boolFalse#bc799737 = Bool;
+boolTrue#997275b5 = Bool;
+---functions---
+messages.setDefaultReaction#d960c4d4 reaction:string = Bool;

+

Parameters

+ + + + + + + + + + + + + + + +
NameTypeDescription
reactionstring 
+

Result

+

Bool

+

Bots can use this method

diff --git a/data/corefork.telegram.org/method/messages.setInlineBotResults b/data/corefork.telegram.org/method/messages.setInlineBotResults index c0a46eb1fd..707b6ccae3 100644 --- a/data/corefork.telegram.org/method/messages.setInlineBotResults +++ b/data/corefork.telegram.org/method/messages.setInlineBotResults @@ -251,6 +251,11 @@ The specified sticker document is invalid. +400 +URL_INVALID +Invalid URL provided. + + 403 USER_BOT_INVALID This method can only be called by a bot. diff --git a/data/corefork.telegram.org/method/messages.toggleNoForwards b/data/corefork.telegram.org/method/messages.toggleNoForwards index 17d64ffaf0..e56e3c4bdc 100644 --- a/data/corefork.telegram.org/method/messages.toggleNoForwards +++ b/data/corefork.telegram.org/method/messages.toggleNoForwards @@ -2,12 +2,36 @@ - Page not found + messages.toggleNoForwards - - + + - + @@ -36,10 +60,55 @@
- -

Page not found

+ +

messages.toggleNoForwards

-
The page has not been saved
+

+ +
+
updatesTooLong#e317af7e = Updates;
+updateShortMessage#313bc7f8 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int user_id:long message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?long reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> ttl_period:flags.25?int = Updates;
+updateShortChatMessage#4d6deea5 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int from_id:long chat_id:long message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?long reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> ttl_period:flags.25?int = Updates;
+updateShort#78d4dec1 update:Update date:int = Updates;
+updatesCombined#725b04c3 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq_start:int seq:int = Updates;
+updates#74ae4240 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq:int = Updates;
+updateShortSentMessage#9015e101 flags:# out:flags.1?true id:int pts:int pts_count:int date:int media:flags.9?MessageMedia entities:flags.7?Vector<MessageEntity> ttl_period:flags.25?int = Updates;
+---functions---
+messages.toggleNoForwards#b11eafa2 peer:InputPeer enabled:Bool = Updates;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
peerInputPeer 
enabledBool 
+

Result

+

Updates

+

Bots can use this method

diff --git a/data/corefork.telegram.org/method/messages.translateText b/data/corefork.telegram.org/method/messages.translateText index 17d64ffaf0..a4a1518371 100644 --- a/data/corefork.telegram.org/method/messages.translateText +++ b/data/corefork.telegram.org/method/messages.translateText @@ -2,12 +2,36 @@ - Page not found + messages.translateText - - + + - + @@ -36,10 +60,70 @@
- -

Page not found

+ +

messages.translateText

-
The page has not been saved
+

+ +
+
messages.translateNoResult#67ca4737 = messages.TranslatedText;
+messages.translateResultText#a214f7d0 text:string = messages.TranslatedText;
+---functions---
+messages.translateText#24ce6dee flags:# peer:flags.0?InputPeer msg_id:flags.0?int text:flags.1?string from_lang:flags.2?string to_lang:string = messages.TranslatedText;

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
flags#Flags, see TL conditional fields
peerflags.0?InputPeer 
msg_idflags.0?int 
textflags.1?string 
from_langflags.2?string 
to_langstring 
+

Result

+

messages.TranslatedText

+

Bots can use this method

diff --git a/data/corefork.telegram.org/method/phone.createGroupCall b/data/corefork.telegram.org/method/phone.createGroupCall index 4ea486ac6d..5d736a1c8b 100644 --- a/data/corefork.telegram.org/method/phone.createGroupCall +++ b/data/corefork.telegram.org/method/phone.createGroupCall @@ -77,6 +77,11 @@ Flags, see TL conditional fields +rtmp_stream +flags.2?true +  + + peer InputPeer Associate the group call or livestream to the provided group/supergroup/channel @@ -117,6 +122,11 @@ 400 +PEER_ID_INVALID +The provided peer id is invalid. + + +400 SCHEDULE_DATE_INVALID Invalid schedule date provided. diff --git a/data/corefork.telegram.org/method/stickers.createStickerSet b/data/corefork.telegram.org/method/stickers.createStickerSet index d05e9f3835..16998344e8 100644 --- a/data/corefork.telegram.org/method/stickers.createStickerSet +++ b/data/corefork.telegram.org/method/stickers.createStickerSet @@ -82,6 +82,11 @@ Whether this is an animated stickerset +videos +flags.4?true +  + + user_id InputUser Stickerset owner diff --git a/data/corefork.telegram.org/methods.html b/data/corefork.telegram.org/methods.html index c7575364c9..a31c964ef4 100644 --- a/data/corefork.telegram.org/methods.html +++ b/data/corefork.telegram.org/methods.html @@ -39,7 +39,7 @@

Methods

-

Accepting the Terms of Service

+

Accepting the Terms of Service

@@ -50,7 +50,7 @@ - + @@ -58,7 +58,7 @@
help.getTermsOfServiceUpdateLook for updates of telegram's terms of serviceLook for updates of telegram's terms of service
help.acceptTermsOfService
-

Dealing with spam and ToS violations

+

Dealing with spam and ToS violations

@@ -69,7 +69,7 @@ - + @@ -81,7 +81,7 @@ - + @@ -93,7 +93,7 @@
account.reportPeerReport a peer for violation of telegram's Terms of ServiceReport a peer for violation of telegram's Terms of Service
account.reportProfilePhoto
messages.reportReport a message in a chat for violation of telegram's Terms of ServiceReport a message in a chat for violation of telegram's Terms of Service
messages.reportSpam
-

Fetching configuration

+

Fetching configuration

@@ -104,7 +104,7 @@ - + @@ -128,7 +128,7 @@ - + @@ -144,7 +144,7 @@
help.getAppChangelogGet changelog of current app.
Typically, an updates constructor will be returned, containing one or more updateServiceNotification updates with app-specific changelogs.
Get changelog of current app.
Typically, an updates constructor will be returned, containing one or more updateServiceNotification updates with app-specific changelogs.
help.getAppConfig
help.getSupportReturns the support user for the 'ask a question' feature.Returns the support user for the 'ask a question' feature.
help.getSupportName
-

Login via QR code

+

Login via QR code

@@ -155,7 +155,7 @@ - + @@ -167,7 +167,7 @@
auth.exportLoginTokenGenerate a login token, for login via QR code.
The generated login token should be encoded using base64url, then shown as a tg://login?token=base64encodedtoken URL in the QR code.

For more info, see login via QR code.
Generate a login token, for login via QR code.
The generated login token should be encoded using base64url, then shown as a tg://login?token=base64encodedtoken URL in the QR code.

For more info, see login via QR code.
auth.acceptLoginToken
-

Miscellaneous

+

Miscellaneous

@@ -202,7 +202,7 @@
-

Registration/Authorization

+

Registration/Authorization

@@ -265,7 +265,7 @@ - + @@ -281,7 +281,7 @@
auth.resetAuthorizationsTerminates all user's authorized sessions except for the current one.

After calling this method it is necessary to reregister the current device using the method account.registerDevice
Terminates all user's authorized sessions except for the current one.

After calling this method it is necessary to reregister the current device using the method account.registerDevice
auth.sendCode
-

Working with GDPR export

+

Working with GDPR export

@@ -300,7 +300,7 @@ - + @@ -316,7 +316,7 @@
messages.getSplitRangesGet message ranges for saving the user's chat historyGet message ranges for saving the user's chat history
channels.getLeftChannels
-

Working with GIFs (actually MPEG4 GIFs)

+

Working with GIFs (actually MPEG4 GIFs)

@@ -339,7 +339,7 @@
-

Working with Public Service Announcement and MTProxy channels

+

Working with Public Service Announcement and MTProxy channels

@@ -358,7 +358,7 @@
-

Working with TSF (internal use only)

+

Working with TSF (internal use only)

@@ -377,7 +377,7 @@
-

Working with 2FA login

+

Working with 2FA login

@@ -416,7 +416,7 @@
-

Working with Seamless Telegram Login

+

Working with Seamless Telegram Login

@@ -447,7 +447,7 @@
-

Working with VoIP calls

+

Working with VoIP calls

@@ -470,7 +470,7 @@ - + @@ -498,7 +498,7 @@
phone.getCallConfigGet phone call configuration to be passed to libtgvoip's shared configGet phone call configuration to be passed to libtgvoip's shared config
phone.receivedCall
-

Working with channels/supergroups/geogroups

+

Working with channels/supergroups/geogroups

@@ -565,7 +565,7 @@ - + @@ -577,7 +577,7 @@ - + @@ -633,7 +633,7 @@
channels.getAdminedPublicChannelsGet channels/supergroups/geogroups we're admin in. Usually called when the user exceeds the limit for owned public channels/supergroups/geogroups, and the user is given the choice to remove one of his channels/supergroups/geogroups.Get channels/supergroups/geogroups we're admin in. Usually called when the user exceeds the limit for owned public channels/supergroups/geogroups, and the user is given the choice to remove one of his channels/supergroups/geogroups.
channels.getChannels
channels.getGroupsForDiscussionGet all groups that can be used as discussion groups.

Returned legacy group chats must be first upgraded to supergroups before they can be set as a discussion group.
To set a returned supergroup as a discussion group, access to its old messages must be enabled using channels.togglePreHistoryHidden, first.
Get all groups that can be used as discussion groups.

Returned legacy group chats must be first upgraded to supergroups before they can be set as a discussion group.
To set a returned supergroup as a discussion group, access to its old messages must be enabled using channels.togglePreHistoryHidden, first.
channels.getMessages
-

Working with chats/supergroups/channels

+

Working with chats/supergroups/channels

@@ -748,7 +748,7 @@
-

Working with deep links

+

Working with deep links

@@ -771,7 +771,7 @@
-

Working with files

+

Working with files

@@ -830,7 +830,7 @@
-

Working with instant view pages

+

Working with instant view pages

@@ -849,7 +849,7 @@
-

Working with secret chats

+

Working with secret chats

@@ -900,7 +900,7 @@
-

Working with telegram passport

+

Working with telegram passport

@@ -959,11 +959,11 @@ - +
users.setSecureValueErrorsNotify the user that the sent passport data contains some errors The user will not be able to re-submit their Passport data to you until the errors are fixed (the contents of the field for which you returned the error must change).

Use this if the data submitted by the user doesn't satisfy the standards your service requires for any reason. For example, if a birthday date seems invalid, a submitted document is blurry, a scan shows evidence of tampering, etc. Supply some details in the error message to make sure the user knows how to correct the issues.
Notify the user that the sent passport data contains some errors The user will not be able to re-submit their Passport data to you until the errors are fixed (the contents of the field for which you returned the error must change).

Use this if the data submitted by the user doesn't satisfy the standards your service requires for any reason. For example, if a birthday date seems invalid, a submitted document is blurry, a scan shows evidence of tampering, etc. Supply some details in the error message to make sure the user knows how to correct the issues.
-

Working with updates

+

Working with updates

@@ -986,7 +986,7 @@
-

Working with bot inline queries and callback buttons

+

Working with bot inline queries and callback buttons

@@ -1021,7 +1021,7 @@
-

Working with bots

+

Working with bots

@@ -1044,7 +1044,7 @@
-

Working with bots (internal bot API use)

+

Working with bots (internal bot API use)

@@ -1063,11 +1063,11 @@ - +
help.setBotUpdatesStatusInforms the server about the number of pending bot updates if they haven't been processed for a long time; for bots onlyInforms the server about the number of pending bot updates if they haven't been processed for a long time; for bots only
-

Working with cloud themes

+

Working with cloud themes

@@ -1114,7 +1114,7 @@
-

Working with contacts and top peers

+

Working with contacts and top peers

@@ -1161,7 +1161,7 @@ - + @@ -1205,7 +1205,7 @@
contacts.getContactsReturns the current user's contact list.Returns the current user's contact list.
contacts.getLocated
-

Working with credit cards

+

Working with credit cards

@@ -1220,7 +1220,7 @@
-

Working with dialogs

+

Working with dialogs

@@ -1263,7 +1263,7 @@ - + @@ -1283,7 +1283,7 @@
messages.hidePeerSettingsBarShould be called after the user hides the report spam/add as contact bar of a new chat, effectively prevents the user from executing the actions specified in the peer's settings.Should be called after the user hides the report spam/add as contact bar of a new chat, effectively prevents the user from executing the actions specified in the peer's settings.
messages.getOnlines
-

Working with drafts

+

Working with drafts

@@ -1306,7 +1306,7 @@
-

Working with emoji keywords

+

Working with emoji keywords

@@ -1333,7 +1333,7 @@
-

Working with folders

+

Working with folders

@@ -1368,7 +1368,7 @@
-

Working with games

+

Working with games

@@ -1395,7 +1395,7 @@
-

Working with group calls & live streaming

+

Working with group calls & live streaming

@@ -1482,7 +1482,7 @@
-

Working with imported chats

+

Working with imported chats

@@ -1497,7 +1497,7 @@ - + @@ -1513,7 +1513,7 @@
messages.startHistoryImportComplete the history import process, importing all messages into the chat.
To be called only after initializing the import with messages.initHistoryImport and uploading all files using messages.uploadImportedMedia.
Complete the history import process, importing all messages into the chat.
To be called only after initializing the import with messages.initHistoryImport and uploading all files using messages.uploadImportedMedia.
messages.checkHistoryImportPeer
-

Working with localization packs

+

Working with localization packs

@@ -1544,7 +1544,7 @@
-

Working with media autodownload settings

+

Working with media autodownload settings

@@ -1563,7 +1563,7 @@
-

Working with message threads

+

Working with message threads

@@ -1590,7 +1590,7 @@
-

Working with message reactions

+

Working with message reactions

@@ -1613,7 +1613,7 @@
-

Working with messages

+

Working with messages

@@ -1644,7 +1644,7 @@ - + @@ -1712,7 +1712,7 @@
messages.getMessageEditDataFind out if a media message's caption can be editedFind out if a media message's caption can be edited
messages.getMessages
-

Working with notification settings

+

Working with notification settings

@@ -1751,7 +1751,7 @@
-

Working with other users

+

Working with other users

@@ -1770,7 +1770,7 @@
-

Working with payments

+

Working with payments

@@ -1809,7 +1809,7 @@ - + @@ -1817,7 +1817,7 @@
messages.setBotPrecheckoutResultsOnce the user has confirmed their payment and shipping details, the bot receives an updateBotPrecheckoutQuery update.
Use this method to respond to such pre-checkout queries.
Note: Telegram must receive an answer within 10 seconds after the pre-checkout query was sent.
Once the user has confirmed their payment and shipping details, the bot receives an updateBotPrecheckoutQuery update.
Use this method to respond to such pre-checkout queries.
Note: Telegram must receive an answer within 10 seconds after the pre-checkout query was sent.
payments.getPaymentReceipt
-

Working with polls

+

Working with polls

@@ -1840,7 +1840,7 @@
-

Working with scheduled messages

+

Working with scheduled messages

@@ -1867,7 +1867,7 @@
-

Working with sensitive content (NSFW)

+

Working with sensitive content (NSFW)

@@ -1886,7 +1886,7 @@
-

Working with sponsored messages

+

Working with sponsored messages

@@ -1905,7 +1905,7 @@
-

Working with sponsored proxies

+

Working with sponsored proxies

@@ -1920,7 +1920,7 @@
-

Working with statistics

+

Working with statistics

@@ -1939,7 +1939,7 @@ - + @@ -1951,7 +1951,7 @@
stats.getMessagePublicForwardsObtains a list of messages, indicating to which other public channels was a channel message forwarded.
Will return a list of messages with peer_id equal to the public channel to which this message was forwarded.
Obtains a list of messages, indicating to which other public channels was a channel message forwarded.
Will return a list of messages with peer_id equal to the public channel to which this message was forwarded.
stats.getMegagroupStats
-

Working with stickers

+

Working with stickers

@@ -2066,7 +2066,7 @@
-

Working with the user's account

+

Working with the user's account

@@ -2085,7 +2085,7 @@ - + @@ -2133,7 +2133,7 @@
account.deleteAccountDelete the user's account from the telegram servers. Can be used, for example, to delete the account of a user that provided the login code, but forgot the 2FA password and no recovery method is configured.Delete the user's account from the telegram servers. Can be used, for example, to delete the account of a user that provided the login code, but forgot the 2FA password and no recovery method is configured.
account.getAccountTTL
-

Working with user profile pictures

+

Working with user profile pictures

@@ -2160,7 +2160,7 @@
-

Working with usernames

+

Working with usernames

@@ -2191,7 +2191,7 @@
-

Working with wallpapers

+

Working with wallpapers

@@ -2230,7 +2230,81 @@
-
+

Other

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameDescription
channels.deleteParticipantHistory 
account.changeAuthorizationSettings 
messages.toggleNoForwards 
messages.getAvailableReactions 
messages.saveDefaultSendAs 
messages.setDefaultReaction 
messages.getSearchResultsCalendar 
messages.hideChatJoinRequest 
messages.hideAllChatJoinRequests 
messages.translateText 
messages.getUnreadReactions 
messages.readReactions 
messages.setChatAvailableReactions 
channels.getSendAs 
messages.getSearchResultsPositions 
account.setAuthorizationTTL 
diff --git a/data/corefork.telegram.org/mtproto/mtproto-transports.html b/data/corefork.telegram.org/mtproto/mtproto-transports.html index 88d72e683a..56c94a6bbb 100644 --- a/data/corefork.telegram.org/mtproto/mtproto-transports.html +++ b/data/corefork.telegram.org/mtproto/mtproto-transports.html @@ -47,21 +47,22 @@ Padded…">
-

Here's a list of MTProto transport protocols (see the ISO/OSI recap for a full explanation):

+

Here's a list of MTProto transport protocols (see the ISO/OSI recap for a full explanation):

-

The server recognizes these different protocols (and distinguishes them from HTTP, too) by the header.
Additionally, the following transport features can be used:

+

The server recognizes these different protocols (and distinguishes them from HTTP, too) by the header. +Additionally, the following transport features can be used:

Example implementations for these protocols can be seen in tdlib and MadelineProto.

-

Abridged

+

Abridged

The lightest protocol available.

  • Overhead: Very small
  • @@ -77,7 +78,8 @@ OR +-+---+----...----+ |h|len| payload + +-+---+----...----+ -

    Before sending anything into the underlying socket (see transports), the client must first send 0xef as the first byte (the server will not send 0xef as the first byte in the first reply).
    Then, payloads are wrapped in the following envelope:

    +

    Before sending anything into the underlying socket (see transports), the client must first send 0xef as the first byte (the server will not send 0xef as the first byte in the first reply).
    +Then, payloads are wrapped in the following envelope:

    • Length: payload length, divided by four, and encoded as a single byte, only if the resulting packet length is a value between 0x01..0x7e.
    • Payload: the MTProto payload
    • @@ -88,7 +90,7 @@ OR
    • Length: payload length, divided by four, and encoded as 3 length bytes (little endian)
    • Payload: the MTProto payload
    -

    Intermediate

    +

    Intermediate

    In case 4-byte data alignment is needed, an intermediate version of the original protocol may be used.

    • Overhead: small
    • @@ -99,19 +101,21 @@ OR
      +----+----...----+
       +len.+  payload  +
       +----+----...----+
      -

      Before sending anything into the underlying socket (see transports), the client must first send 0xeeeeeeee as the first int (four bytes, the server will not send 0xeeeeeeee as the first int in the first reply).
      Then, payloads are wrapped in the following envelope:

      +

      Before sending anything into the underlying socket (see transports), the client must first send 0xeeeeeeee as the first int (four bytes, the server will not send 0xeeeeeeee as the first int in the first reply).
      +Then, payloads are wrapped in the following envelope:

      • Length: payload length encoded as 4 length bytes (little endian)
      • Payload: the MTProto payload
      -

      Padded intermediate

      +

      Padded intermediate

      Padded version of the intermediate protocol, to use with obfuscation enabled to bypass ISP blocks.

      • Overhead: small-medium
      • Minimum envelope length: random
      • Maximum envelope length: random
      -

      Before sending anything into the underlying socket (see transports), the client must first send 0xdddddddd as the first int (four bytes, the server will not send 0xdddddddd as the first int in the first reply).
      Then, payloads are wrapped in the following envelope:

      +

      Before sending anything into the underlying socket (see transports), the client must first send 0xdddddddd as the first int (four bytes, the server will not send 0xdddddddd as the first int in the first reply).
      +Then, payloads are wrapped in the following envelope:

      +----+----...----+----...----+
       |tlen|  payload  |  padding  |
       +----+----...----+----...----+
      @@ -121,7 +125,7 @@ OR
    • Payload: the MTProto payload
    • Padding: A random padding string of length 0-15
    -

    Full

    +

    Full

    The basic MTProto transport protocol

    • Overhead: medium
    • @@ -139,32 +143,42 @@ OR
    • payload: MTProto payload
    • crc: 4 CRC32 bytes computed using length, sequence number, and payload together.
    -

    Transport features

    +

    Transport features

    Additionally, the following transport features can be used:

    -

    Quick ack

    -

    These MTProto transport protocols have support for quick acknowledgment.
    In this case, the client sets the highest-order length bit in the query packet, and the server responds with a special 4 bytes as a separate packet.
    They are the 32 higher-order bits of SHA256 of the encrypted portion of the packet prepended by 32 bytes from the authorization key (the same hash as computed for verifying the message key), with the most significant bit set to make clear that this is not the length of a regular server response packet; if the abridged version is used, bswap is applied to these four bytes.

    -

    Transport errors

    +

    Quick ack

    +

    These MTProto transport protocols have support for quick acknowledgment. +In this case, the client sets the highest-order length bit in the query packet, and the server responds with a special 4 bytes as a separate packet. +They are the 32 higher-order bits of SHA256 of the encrypted portion of the packet prepended by 32 bytes from the authorization key (the same hash as computed for verifying the message key), with the most significant bit set to make clear that this is not the length of a regular server response packet; if the abridged version is used, bswap is applied to these four bytes.

    +

    Transport errors

    In the event of a transport error (missing auth key, transport flood, etc.), the server may send a packet with a signed little-endian number of 4 bytes, whose absolute value contains the error code (the error itself is actually negative).

    For example, error Code 403 corresponds to situations where the corresponding HTTP error would have been returned by the HTTP protocol.

    Error 404 (auth key not found) is returned when the specified auth key ID cannot be found by the DC.

    Error 429 (transport flood) is returned when too many transport connections are established to the same IP in a too short lapse of time, or if any of the container/service message limits are reached.

    Error 444 (invalid DC) is returned while creating an auth key, connecting to an MTProxy or in other contexts if an invalid DC ID is specified.

    -

    Transport obfuscation

    +

    Transport obfuscation

    Transport obfuscation is required to use the websocket transports.

    Transport obfuscation to prevent ISP blocks is implemented using the following protocol, situated under the MTProto transport in the ISO/OSI stack, see the recap; this means that the payload is first wrapped in the MTProto transport envelope (all transports are supported), and then obfuscated:

    -

    Prior to establishing the connection (and eventually sending the protocol header of a specific MTProto transport), a 64-byte (512-bit) random initialization payload is generated.
    During the generation process, special care must be taken in order to avoid a situation where that the first int (first four bytes) of the random string are equal to one of the known protocol identifiers (see above).
    In particular, the first four bytes must not be equal to 0xdddddddd (padded intermediate), 0xeeeeeeee (intermediate), POST, GET, HEAD, or any of the HTTP methods that are accepted by the MTProto servers.
    The first byte must also not be equal to 0xef (abridged).
    Bytes 4-8 must also not be equal to 0x00000000, since that would indicate use of the full transport with the initial TCP sequence number (0).

    +

    Prior to establishing the connection (and eventually sending the protocol header of a specific MTProto transport), a 64-byte (512-bit) random initialization payload is generated. +During the generation process, special care must be taken in order to avoid a situation where that the first int (first four bytes) of the random string are equal to one of the known protocol identifiers (see above).
    +In particular, the first four bytes must not be equal to 0xdddddddd (padded intermediate), 0xeeeeeeee (intermediate), POST, GET, HEAD, or any of the HTTP methods that are accepted by the MTProto servers.
    +The first byte must also not be equal to 0xef (abridged). +Bytes 4-8 must also not be equal to 0x00000000, since that would indicate use of the full transport with the initial TCP sequence number (0).

    The protocol identifier, if present, must be inserted in the initialization payload at byte offset 56: if its length is less than 4, it must be padded using the protocol identifier itself, to make its length 4 (0xef => 0xefefefef): the standalone protocol identifier must be not be sent aftwerwards.

    -

    This protocol is also (but not exclusively) used when connecting to MTProxies: only in this case, the DC ID in a specially encoded form must also be inserted in the initialization payload at offset 60.
    The encoding simply consist of the DC ID in two-byte signed little-endian form; 10000 has to be added to the DC ID to connect to the test servers; it has to be made negative if the DC we're connecting to is a media (not CDN) DC.

    +

    This protocol is also (but not exclusively) used when connecting to MTProxies: only in this case, the DC ID in a specially encoded form must also be inserted in the initialization payload at offset 60. +The encoding simply consist of the DC ID in two-byte signed little-endian form; 10000 has to be added to the DC ID to connect to the test servers; it has to be made negative if the DC we're connecting to is a media (not CDN) DC.

    Next, a secondary initialization payload is generated by reversing the primary initialization payload.

    Two keys are extracted from both initialization payloads, using bytes at offsets 8-40: the key extracted from the primary payload is used as encryption key, the key extracted from the secondary payload is used as decryption key.

    Two IVs are extracted from both initialization payloads, using bytes at offsets 40-56: the IV extracted from the primary payload is used as encryption IV, the IV extracted from the secondary payload is used as decryption IV.

    -

    Only if using MTProxy, the secret is used to provide connection with the MTProxy server.
    The secret is a 16-byte string, usually distributed in its hexadecimal form along with the MTProxy host and port.

    -

    Often, a 17-byte version of the secret can be found: this simply indicates that the client should use a specific MTProto transport (based on the first byte, usually it's 0xdd, to indicate that the padded intermediate protocol should be used 0xdddddddd; however, clients should default to the padded intermediate transport whenever an additional byte in the secret is encountered).

    -

    The extracted encryption and decryption keys must be concatenated with the secret (the first byte of which should be ignored if it's the 17-byte version), and the SHA256 hash of such string should be used as encryption/decryption key.

    +

    Only if using MTProxy, the secret is used to provide connection with the MTProxy server. +The secret is a 16-byte string, usually distributed in its hexadecimal form along with the MTProxy host and port.

    +

    Often, a 17-byte version of the secret can be found: this simply indicates that the client should use a specific MTProto transport (based on the first byte, usually it's 0xdd, to indicate that the padded intermediate protocol should be used 0xdddddddd; however, clients should default to the padded intermediate transport whenever an additional byte in the secret is encountered).

    +

    The extracted encryption and decryption keys must be concatenated with the secret (the first byte of which should be ignored if it's the 17-byte version), and the SHA256 hash of such string should be used as encryption/decryption key.

    The obtained encryption and decryption key/IV pairs must then be used with AES-256-CTR to encrypt and decrypt all outgoing and incoming payloads.

    -

    The first thing that must be encrypted using the encryption key is the initialization payload itself.
    Then bytes 56-64 of the encrypted initialization payload are substituted in the original initialization payload: this is the part that contains the constant MTProto transport protocol identifier and the DC ID (only for MTProxies).

    +

    The first thing that must be encrypted using the encryption key is the initialization payload itself. +Then bytes 56-64 of the encrypted initialization payload are substituted in the original initialization payload: this is the part that contains the constant MTProto transport protocol identifier and the DC ID (only for MTProxies).

    The final initialization payload must then be sent in the socket as first 64 bytes after the TCP handshake.

    -

    Example pseudocode for the generation of an MTProxy connection payload (media DC 4) using the obfuscated padded intermediate transport.
    Warning: do not use the specified proxy secret in any MTProxy exposed on the internet.

    +

    Example pseudocode for the generation of an MTProxy connection payload (media DC 4) using the obfuscated padded intermediate transport. +Warning: do not use the specified proxy secret in any MTProxy exposed on the internet.

    protocol := 0xdddddddd
     dc := 0xfcff
     
    @@ -201,8 +215,7 @@ encryptedInit := CTR(encryptKey, encryptIV, init)
     
     finalInit := substr(init, 0, 56) + substr(encryptedInit, 56, 8)
     
    -write(finalInit)
    -
+write(finalInit)
diff --git a/data/corefork.telegram.org/type/AvailableReaction.html b/data/corefork.telegram.org/type/AvailableReaction.html index 0780c13516..ed847c1a35 100644 --- a/data/corefork.telegram.org/type/AvailableReaction.html +++ b/data/corefork.telegram.org/type/AvailableReaction.html @@ -2,12 +2,20 @@ - Page not found + AvailableReaction - - + + - + @@ -36,10 +44,37 @@
- -

Page not found

+ +

AvailableReaction

-
The page has not been saved
+

+ +
+
availableReaction#c077ec01 flags:# inactive:flags.0?true reaction:string title:string static_icon:Document appear_animation:Document select_animation:Document activate_animation:Document effect_animation:Document around_animation:flags.1?Document center_icon:flags.1?Document = AvailableReaction;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
availableReaction 
diff --git a/data/corefork.telegram.org/type/Bool.html b/data/corefork.telegram.org/type/Bool.html index 5588014a09..f81b4fc573 100644 --- a/data/corefork.telegram.org/type/Bool.html +++ b/data/corefork.telegram.org/type/Bool.html @@ -209,10 +209,6 @@ -auth.logOut -Logs out the user. - - auth.resetAuthorizations Terminates all user's authorized sessions except for the current one.

After calling this method it is necessary to reregister the current device using the method account.registerDevice @@ -644,6 +640,22 @@ channels.viewSponsoredMessage Mark a specific sponsored message as read + +messages.saveDefaultSendAs +  + + +account.setAuthorizationTTL +  + + +account.changeAuthorizationSettings +  + + +messages.setDefaultReaction +  +
diff --git a/data/corefork.telegram.org/type/ChannelAdminLogEventAction.html b/data/corefork.telegram.org/type/ChannelAdminLogEventAction.html index 4aad102c44..33b596ef80 100644 --- a/data/corefork.telegram.org/type/ChannelAdminLogEventAction.html +++ b/data/corefork.telegram.org/type/ChannelAdminLogEventAction.html @@ -225,6 +225,22 @@ channelAdminLogEventActionChangeHistoryTTL The Time-To-Live of messages in this chat was changed + +channelAdminLogEventActionParticipantJoinByRequest +  + + +channelAdminLogEventActionToggleNoForwards +  + + +channelAdminLogEventActionSendMessage +  + + +channelAdminLogEventActionChangeAvailableReactions +  +
diff --git a/data/corefork.telegram.org/type/ChatTheme.html b/data/corefork.telegram.org/type/ChatTheme.html index 8dca54ecc3..50291e9445 100644 --- a/data/corefork.telegram.org/type/ChatTheme.html +++ b/data/corefork.telegram.org/type/ChatTheme.html @@ -52,22 +52,7 @@
-

-

Constructors

- - - - - - - - - - - - - -
ConstructorDescription
chatThemeA chat theme
+

diff --git a/data/corefork.telegram.org/type/KeyboardButton.html b/data/corefork.telegram.org/type/KeyboardButton.html index c1f83d7626..41c52fba0e 100644 --- a/data/corefork.telegram.org/type/KeyboardButton.html +++ b/data/corefork.telegram.org/type/KeyboardButton.html @@ -118,6 +118,14 @@ keyboardButtonRequestPoll A button that allows the user to create and send a poll when pressed; available only in private + +inputKeyboardButtonUserProfile +  + + +keyboardButtonUserProfile +  +
diff --git a/data/corefork.telegram.org/type/MessageAction.html b/data/corefork.telegram.org/type/MessageAction.html index be54e707e1..cc9812317c 100644 --- a/data/corefork.telegram.org/type/MessageAction.html +++ b/data/corefork.telegram.org/type/MessageAction.html @@ -207,6 +207,10 @@ messageActionSetChatTheme The chat theme was changed + +messageActionChatJoinedByRequest +  +
diff --git a/data/corefork.telegram.org/type/MessageEntity.html b/data/corefork.telegram.org/type/MessageEntity.html index 1f98f925d6..d959b509fa 100644 --- a/data/corefork.telegram.org/type/MessageEntity.html +++ b/data/corefork.telegram.org/type/MessageEntity.html @@ -157,6 +157,10 @@ messageEntityBankCard Indicates a credit card number + +messageEntitySpoiler +  +
diff --git a/data/corefork.telegram.org/type/MessagePeerReaction.html b/data/corefork.telegram.org/type/MessagePeerReaction.html index 0780c13516..4b420cc127 100644 --- a/data/corefork.telegram.org/type/MessagePeerReaction.html +++ b/data/corefork.telegram.org/type/MessagePeerReaction.html @@ -2,12 +2,20 @@ - Page not found + MessagePeerReaction - - + + - + @@ -36,10 +44,37 @@
- -

Page not found

+ +

MessagePeerReaction

-
The page has not been saved
+

+ +
+
messagePeerReaction#51b67eff flags:# big:flags.0?true unread:flags.1?true peer_id:Peer reaction:string = MessagePeerReaction;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
messagePeerReaction 
diff --git a/data/corefork.telegram.org/type/MessageReactions.html b/data/corefork.telegram.org/type/MessageReactions.html index f8aad62c31..0a5825e491 100644 --- a/data/corefork.telegram.org/type/MessageReactions.html +++ b/data/corefork.telegram.org/type/MessageReactions.html @@ -52,7 +52,22 @@
-
messageReactions#4f2b9479 flags:# min:flags.0?true can_see_list:flags.2?true results:Vector<ReactionCount> recent_reactions:flags.1?Vector<MessagePeerReaction> = MessageReactions;

+
messageReactions#4f2b9479 flags:# min:flags.0?true can_see_list:flags.2?true results:Vector<ReactionCount> recent_reactions:flags.1?Vector<MessagePeerReaction> = MessageReactions;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
messageReactionsMessage reactions
diff --git a/data/corefork.telegram.org/type/MessageUserReaction.html b/data/corefork.telegram.org/type/MessageUserReaction.html new file mode 100644 index 0000000000..790d8f5ecb --- /dev/null +++ b/data/corefork.telegram.org/type/MessageUserReaction.html @@ -0,0 +1,128 @@ + + + + + MessageUserReaction + + + + + + + + + + + + + +
+ +
+
+
+ +

MessageUserReaction

+ +

Message reaction

+

+ +
+

+ +
+ +
+
+ +
+ + + + + + diff --git a/data/corefork.telegram.org/type/PeerSettings.html b/data/corefork.telegram.org/type/PeerSettings.html index fec0facaca..aa54912b35 100644 --- a/data/corefork.telegram.org/type/PeerSettings.html +++ b/data/corefork.telegram.org/type/PeerSettings.html @@ -67,21 +67,6 @@ Peer settings - -

Methods

- - - - - - - - - - - - -
MethodDescription
messages.getPeerSettingsGet peer settings
diff --git a/data/corefork.telegram.org/type/ReactionCount.html b/data/corefork.telegram.org/type/ReactionCount.html index c0bb0e7e1d..346be39808 100644 --- a/data/corefork.telegram.org/type/ReactionCount.html +++ b/data/corefork.telegram.org/type/ReactionCount.html @@ -52,7 +52,22 @@
-
reactionCount#6fb250d1 flags:# chosen:flags.0?true reaction:string count:int = ReactionCount;

+
reactionCount#6fb250d1 flags:# chosen:flags.0?true reaction:string count:int = ReactionCount;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
reactionCountReactions
diff --git a/data/corefork.telegram.org/type/SearchResultsCalendarPeriod.html b/data/corefork.telegram.org/type/SearchResultsCalendarPeriod.html index 0780c13516..36d8a21d10 100644 --- a/data/corefork.telegram.org/type/SearchResultsCalendarPeriod.html +++ b/data/corefork.telegram.org/type/SearchResultsCalendarPeriod.html @@ -2,12 +2,20 @@ - Page not found + SearchResultsCalendarPeriod - - + + - + @@ -36,10 +44,37 @@
- -

Page not found

+ +

SearchResultsCalendarPeriod

-
The page has not been saved
+

+ +
+
searchResultsCalendarPeriod#c9b0539f date:int min_msg_id:int max_msg_id:int count:int = SearchResultsCalendarPeriod;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
searchResultsCalendarPeriod 
diff --git a/data/corefork.telegram.org/type/SearchResultsPosition.html b/data/corefork.telegram.org/type/SearchResultsPosition.html index 0780c13516..35c119b564 100644 --- a/data/corefork.telegram.org/type/SearchResultsPosition.html +++ b/data/corefork.telegram.org/type/SearchResultsPosition.html @@ -2,12 +2,20 @@ - Page not found + SearchResultsPosition - - + + - + @@ -36,10 +44,37 @@
- -

Page not found

+ +

SearchResultsPosition

-
The page has not been saved
+

+ +
+
searchResultPosition#7f648b67 msg_id:int date:int offset:int = SearchResultsPosition;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
searchResultPosition 
diff --git a/data/corefork.telegram.org/type/Update.html b/data/corefork.telegram.org/type/Update.html index ee56835e88..271836de13 100644 --- a/data/corefork.telegram.org/type/Update.html +++ b/data/corefork.telegram.org/type/Update.html @@ -529,6 +529,18 @@ updateBotCommands The command set of a certain bot in a certain chat has changed. + +updatePendingJoinRequests +  + + +updateBotChatInviteRequester +  + + +updateMessageReactions +New message reactions are available +
diff --git a/data/corefork.telegram.org/type/Updates.html b/data/corefork.telegram.org/type/Updates.html index e6271b3738..89f5a0adc2 100644 --- a/data/corefork.telegram.org/type/Updates.html +++ b/data/corefork.telegram.org/type/Updates.html @@ -437,6 +437,30 @@ messages.setChatTheme Change the chat theme of a certain chat + +messages.hideChatJoinRequest +  + + +messages.hideAllChatJoinRequests +  + + +messages.toggleNoForwards +  + + +messages.sendReaction +Send reaction to message + + +messages.getMessagesReactions +Get message reactions + + +messages.setChatAvailableReactions +  +
diff --git a/data/corefork.telegram.org/type/UserFull.html b/data/corefork.telegram.org/type/UserFull.html index b443b0b2c2..e016e5c87e 100644 --- a/data/corefork.telegram.org/type/UserFull.html +++ b/data/corefork.telegram.org/type/UserFull.html @@ -67,21 +67,6 @@ Extended user info - -

Methods

- - - - - - - - - - - - -
MethodDescription
users.getFullUserReturns extended user info by ID.
diff --git a/data/corefork.telegram.org/type/account.ChatThemes b/data/corefork.telegram.org/type/account.ChatThemes index 4e9c81d0f3..253aa2b11d 100644 --- a/data/corefork.telegram.org/type/account.ChatThemes +++ b/data/corefork.telegram.org/type/account.ChatThemes @@ -52,41 +52,7 @@
-

-

Constructors

- - - - - - - - - - - - - - - - - -
ConstructorDescription
account.chatThemesNotModifiedThe available chat themes were not modified
account.chatThemesAvailable chat themes
-

Methods

- - - - - - - - - - - - - -
MethodDescription
account.getChatThemesGet all available chat themes
+

diff --git a/data/corefork.telegram.org/type/account.Themes b/data/corefork.telegram.org/type/account.Themes index 7eaadbae69..9b4a2859dd 100644 --- a/data/corefork.telegram.org/type/account.Themes +++ b/data/corefork.telegram.org/type/account.Themes @@ -91,6 +91,10 @@ account.getThemes Get installed themes + +account.getChatThemes +Get all available chat themes +
diff --git a/data/corefork.telegram.org/type/auth.CodeType b/data/corefork.telegram.org/type/auth.CodeType index d345b6e070..eaa6922d89 100644 --- a/data/corefork.telegram.org/type/auth.CodeType +++ b/data/corefork.telegram.org/type/auth.CodeType @@ -77,6 +77,10 @@ auth.codeTypeFlashCall Type of verification code that will be sent next if you call the resendCode method: SMS code + +auth.codeTypeMissedCall +  +
diff --git a/data/corefork.telegram.org/type/auth.LoggedOut b/data/corefork.telegram.org/type/auth.LoggedOut index 0780c13516..588fc9a10a 100644 --- a/data/corefork.telegram.org/type/auth.LoggedOut +++ b/data/corefork.telegram.org/type/auth.LoggedOut @@ -2,12 +2,30 @@ - Page not found + auth.LoggedOut - - + + - + @@ -36,10 +54,56 @@
- -

Page not found

+ +

auth.LoggedOut

-
The page has not been saved
+

+ +
+
auth.loggedOut#c3a2835f flags:# future_auth_token:flags.0?bytes = auth.LoggedOut;
+
+---functions---
+
+auth.logOut#3e72ba19 = auth.LoggedOut;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
auth.loggedOut 
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
auth.logOutLogs out the user.
diff --git a/data/corefork.telegram.org/type/auth.SentCodeType b/data/corefork.telegram.org/type/auth.SentCodeType index 8878b72279..e26a05f07f 100644 --- a/data/corefork.telegram.org/type/auth.SentCodeType +++ b/data/corefork.telegram.org/type/auth.SentCodeType @@ -82,6 +82,10 @@ auth.sentCodeTypeFlashCall The code will be sent via a flash phone call, that will be closed immediately. The phone code will then be the phone number itself, just make sure that the phone number matches the specified pattern. + +auth.sentCodeTypeMissedCall +  +
diff --git a/data/corefork.telegram.org/type/channels.SendAsPeers b/data/corefork.telegram.org/type/channels.SendAsPeers index 0780c13516..616ea40a7d 100644 --- a/data/corefork.telegram.org/type/channels.SendAsPeers +++ b/data/corefork.telegram.org/type/channels.SendAsPeers @@ -2,12 +2,30 @@ - Page not found + channels.SendAsPeers - - + + - + @@ -36,10 +54,56 @@
- -

Page not found

+ +

channels.SendAsPeers

-
The page has not been saved
+

+ +
+
channels.sendAsPeers#8356cda9 peers:Vector<Peer> chats:Vector<Chat> users:Vector<User> = channels.SendAsPeers;
+
+---functions---
+
+channels.getSendAs#dc770ee peer:InputPeer = channels.SendAsPeers;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
channels.sendAsPeers 
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
channels.getSendAs 
diff --git a/data/corefork.telegram.org/type/messages.AffectedHistory b/data/corefork.telegram.org/type/messages.AffectedHistory index 65743b3d4a..0d7e08b1e9 100644 --- a/data/corefork.telegram.org/type/messages.AffectedHistory +++ b/data/corefork.telegram.org/type/messages.AffectedHistory @@ -91,10 +91,6 @@ Deletes communication history. -channels.deleteUserHistory -Delete all messages sent by a certain user in a supergroup - - messages.readMentions Mark mentions as read @@ -102,6 +98,14 @@ messages.unpinAllMessages Unpin all pinned messages + +channels.deleteParticipantHistory +  + + +messages.readReactions +  +
diff --git a/data/corefork.telegram.org/type/messages.AvailableReactions b/data/corefork.telegram.org/type/messages.AvailableReactions index 0780c13516..0a6dd16925 100644 --- a/data/corefork.telegram.org/type/messages.AvailableReactions +++ b/data/corefork.telegram.org/type/messages.AvailableReactions @@ -2,12 +2,28 @@ - Page not found + messages.AvailableReactions - - + + - + @@ -36,10 +52,61 @@
- -

Page not found

+ +

messages.AvailableReactions

-
The page has not been saved
+

+ +
+
messages.availableReactionsNotModified#9f071957 = messages.AvailableReactions;
+messages.availableReactions#768e3aad hash:int reactions:Vector<AvailableReaction> = messages.AvailableReactions;
+
+---functions---
+
+messages.getAvailableReactions#18dea0ac hash:int = messages.AvailableReactions;

+

Constructors

+ + + + + + + + + + + + + + + + + +
ConstructorDescription
messages.availableReactionsNotModified 
messages.availableReactions 
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
messages.getAvailableReactions 
diff --git a/data/corefork.telegram.org/type/messages.MessageReactionsList b/data/corefork.telegram.org/type/messages.MessageReactionsList index 0780c13516..7d8ed1dc46 100644 --- a/data/corefork.telegram.org/type/messages.MessageReactionsList +++ b/data/corefork.telegram.org/type/messages.MessageReactionsList @@ -2,12 +2,28 @@ - Page not found + messages.MessageReactionsList - - + + - + @@ -36,10 +52,56 @@
- -

Page not found

+ +

messages.MessageReactionsList

-
The page has not been saved
+

+ +
+
messages.messageReactionsList#31bd492d flags:# count:int reactions:Vector<MessagePeerReaction> chats:Vector<Chat> users:Vector<User> next_offset:flags.0?string = messages.MessageReactionsList;
+
+---functions---
+
+messages.getMessageReactionsList#e0ee6b77 flags:# peer:InputPeer id:int reaction:flags.0?string offset:flags.1?string limit:int = messages.MessageReactionsList;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
messages.messageReactionsList 
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
messages.getMessageReactionsListGet full message reaction list
diff --git a/data/corefork.telegram.org/type/messages.Messages b/data/corefork.telegram.org/type/messages.Messages index cac1bab863..33250363fa 100644 --- a/data/corefork.telegram.org/type/messages.Messages +++ b/data/corefork.telegram.org/type/messages.Messages @@ -153,6 +153,10 @@ stats.getMessagePublicForwards Obtains a list of messages, indicating to which other public channels was a channel message forwarded. + +messages.getUnreadReactions +  +
diff --git a/data/corefork.telegram.org/type/messages.PeerSettings b/data/corefork.telegram.org/type/messages.PeerSettings index 0780c13516..ef376e9949 100644 --- a/data/corefork.telegram.org/type/messages.PeerSettings +++ b/data/corefork.telegram.org/type/messages.PeerSettings @@ -2,12 +2,30 @@ - Page not found + messages.PeerSettings - - + + - + @@ -36,10 +54,56 @@
- -

Page not found

+ +

messages.PeerSettings

-
The page has not been saved
+

+ +
+
messages.peerSettings#6880b94d settings:PeerSettings chats:Vector<Chat> users:Vector<User> = messages.PeerSettings;
+
+---functions---
+
+messages.getPeerSettings#efd9a6a2 peer:InputPeer = messages.PeerSettings;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
messages.peerSettings 
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
messages.getPeerSettingsGet peer settings
diff --git a/data/corefork.telegram.org/type/messages.SearchResultsCalendar b/data/corefork.telegram.org/type/messages.SearchResultsCalendar index 0780c13516..e8034627ff 100644 --- a/data/corefork.telegram.org/type/messages.SearchResultsCalendar +++ b/data/corefork.telegram.org/type/messages.SearchResultsCalendar @@ -2,12 +2,28 @@ - Page not found + messages.SearchResultsCalendar - - + + - + @@ -36,10 +52,56 @@
- -

Page not found

+ +

messages.SearchResultsCalendar

-
The page has not been saved
+

+ +
+
messages.searchResultsCalendar#147ee23c flags:# inexact:flags.0?true count:int min_date:int min_msg_id:int offset_id_offset:flags.1?int periods:Vector<SearchResultsCalendarPeriod> messages:Vector<Message> chats:Vector<Chat> users:Vector<User> = messages.SearchResultsCalendar;
+
+---functions---
+
+messages.getSearchResultsCalendar#49f0bde9 peer:InputPeer filter:MessagesFilter offset_id:int offset_date:int = messages.SearchResultsCalendar;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
messages.searchResultsCalendar 
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
messages.getSearchResultsCalendar 
diff --git a/data/corefork.telegram.org/type/messages.SearchResultsPositions b/data/corefork.telegram.org/type/messages.SearchResultsPositions index 0780c13516..70177cacea 100644 --- a/data/corefork.telegram.org/type/messages.SearchResultsPositions +++ b/data/corefork.telegram.org/type/messages.SearchResultsPositions @@ -2,12 +2,28 @@ - Page not found + messages.SearchResultsPositions - - + + - + @@ -36,10 +52,56 @@
- -

Page not found

+ +

messages.SearchResultsPositions

-
The page has not been saved
+

+ +
+
messages.searchResultsPositions#53b22baf count:int positions:Vector<SearchResultsPosition> = messages.SearchResultsPositions;
+
+---functions---
+
+messages.getSearchResultsPositions#6e9583a3 peer:InputPeer filter:MessagesFilter offset_id:int limit:int = messages.SearchResultsPositions;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
messages.searchResultsPositions 
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
messages.getSearchResultsPositions 
diff --git a/data/corefork.telegram.org/type/messages.SponsoredMessages b/data/corefork.telegram.org/type/messages.SponsoredMessages index 23c3f7563e..a2bcd084fe 100644 --- a/data/corefork.telegram.org/type/messages.SponsoredMessages +++ b/data/corefork.telegram.org/type/messages.SponsoredMessages @@ -4,10 +4,10 @@ messages.SponsoredMessages - + - + @@ -57,7 +57,7 @@ ---functions--- channels.getSponsoredMessages#ec210fbf channel:InputChannel = messages.SponsoredMessages;

-

Constructors

+

Constructors

@@ -72,7 +72,7 @@
-

Methods

+

Methods

@@ -86,11 +86,7 @@ -
Get a list of sponsored messages
-

Related pages

-

Sponsored messages

-

How to implement sponsored messages

-
+
diff --git a/data/corefork.telegram.org/type/messages.StickerSet b/data/corefork.telegram.org/type/messages.StickerSet index 523a4749ca..62f2e26bc1 100644 --- a/data/corefork.telegram.org/type/messages.StickerSet +++ b/data/corefork.telegram.org/type/messages.StickerSet @@ -77,6 +77,10 @@ messages.stickerSet Stickerset and stickers inside it + +messages.stickerSetNotModified +  +

Methods

diff --git a/data/corefork.telegram.org/type/messages.TranslatedText b/data/corefork.telegram.org/type/messages.TranslatedText index 0780c13516..824ef1e15e 100644 --- a/data/corefork.telegram.org/type/messages.TranslatedText +++ b/data/corefork.telegram.org/type/messages.TranslatedText @@ -2,12 +2,30 @@ - Page not found + messages.TranslatedText - - + + - + @@ -36,10 +54,61 @@
- -

Page not found

+ +

messages.TranslatedText

-
The page has not been saved
+

+ +
+
messages.translateNoResult#67ca4737 = messages.TranslatedText;
+messages.translateResultText#a214f7d0 text:string = messages.TranslatedText;
+
+---functions---
+
+messages.translateText#24ce6dee flags:# peer:flags.0?InputPeer msg_id:flags.0?int text:flags.1?string from_lang:flags.2?string to_lang:string = messages.TranslatedText;

+

Constructors

+ + + + + + + + + + + + + + + + + +
ConstructorDescription
messages.translateNoResult 
messages.translateResultText 
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
messages.translateText 
diff --git a/data/corefork.telegram.org/type/users.UserFull b/data/corefork.telegram.org/type/users.UserFull index 0780c13516..4bf4523052 100644 --- a/data/corefork.telegram.org/type/users.UserFull +++ b/data/corefork.telegram.org/type/users.UserFull @@ -2,12 +2,30 @@ - Page not found + users.UserFull - - + + - + @@ -36,10 +54,56 @@
- -

Page not found

+ +

users.UserFull

-
The page has not been saved
+

+ +
+
users.userFull#3b6d152e full_user:UserFull chats:Vector<Chat> users:Vector<User> = users.UserFull;
+
+---functions---
+
+users.getFullUser#b60f5918 id:InputUser = users.UserFull;

+

Constructors

+ + + + + + + + + + + + + +
ConstructorDescription
users.userFull 
+

Methods

+ + + + + + + + + + + + + +
MethodDescription
users.getFullUserReturns extended user info by ID.