Skip to content

Commit 6c071c1

Browse files
authored
Merge pull request #1216 from gotd/feat/update-tdlib-schema
Update TDLib schema to the latest layer
2 parents f63c245 + 9810375 commit 6c071c1

11 files changed

+1473
-656
lines changed

_schema/tdapi.tl

Lines changed: 33 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Code generated by ./cmd/dltl, DO NOT EDIT.
22
//
33
// Source: https://raw.githubusercontent.com/tdlib/td/master/td/generate/scheme/td_api.tl
4-
// SHA256: a0a75f59a19dfe7e37e43c49cc30b4552866e9b763601de51c5a47da9612b2d1
4+
// SHA256: e2751095a82534b34946191be6b25566410f0af3343af7370609ac0fedcebca7
55

66
double#2210c154 ? = Double;
77

@@ -1108,10 +1108,6 @@ messageForwardOriginHiddenUser#efd4eee3 sender_name:string = MessageForwardOrigi
11081108
//@author_signature Original post author signature
11091109
messageForwardOriginChannel#58dabee3 chat_id:int53 message_id:int53 author_signature:string = MessageForwardOrigin;
11101110

1111-
//@description The message was imported from an exported message history
1112-
//@sender_name Name of the sender
1113-
messageForwardOriginMessageImport#d3eb2e21 sender_name:string = MessageForwardOrigin;
1114-
11151111
//@class ReactionType @description Describes type of message reaction
11161112

11171113
//@description A reaction with an emoji
@@ -1130,6 +1126,11 @@ reactionTypeCustomEmoji#c50b42f3 custom_emoji_id:int64 = ReactionType;
11301126
//@from_message_id For messages forwarded to the chat with the current user (Saved Messages), to the Replies bot chat, or to the channel's discussion group, the identifier of the original message from which the new message was forwarded last time; 0 if unknown
11311127
messageForwardInfo#ec7dcac8 origin:MessageForwardOrigin date:int32 public_service_announcement_type:string from_chat_id:int53 from_message_id:int53 = MessageForwardInfo;
11321128

1129+
//@description Contains information about a message created with importMessages
1130+
//@sender_name Name of the original sender
1131+
//@date Point in time (Unix timestamp) when the message was originally sent
1132+
messageImportInfo#e6dfabcf sender_name:string date:int32 = MessageImportInfo;
1133+
11331134
//@description Contains information about replies to a message
11341135
//@reply_count Number of times the message was directly or indirectly replied
11351136
//@recent_replier_ids Identifiers of at most 3 recent repliers to the message; available in channels with a discussion supergroup. The users and chats are expected to be inaccessible: only their photo and name will be available
@@ -1142,8 +1143,9 @@ messageReplyInfo#69240cb9 reply_count:int32 recent_replier_ids:vector<MessageSen
11421143
//@type Type of the reaction
11431144
//@total_count Number of times the reaction was added
11441145
//@is_chosen True, if the reaction is chosen by the current user
1146+
//@used_sender_id Identifier of the message sender used by the current user to add the reaction; null if unknown or the reaction isn't chosen
11451147
//@recent_sender_ids Identifiers of at most 3 recent message senders, added the reaction; available in private, basic group and supergroup chats
1146-
messageReaction#2bb15e3a type:ReactionType total_count:int32 is_chosen:Bool recent_sender_ids:vector<MessageSender> = MessageReaction;
1148+
messageReaction#7d9e9864 type:ReactionType total_count:int32 is_chosen:Bool used_sender_id:MessageSender recent_sender_ids:vector<MessageSender> = MessageReaction;
11471149

11481150
//@description Contains information about interactions with a message
11491151
//@view_count Number of times the message was viewed
@@ -1209,6 +1211,7 @@ messageReplyToStory#708ca939 story_sender_chat_id:int53 story_id:int32 = Message
12091211
//@date Point in time (Unix timestamp) when the message was sent
12101212
//@edit_date Point in time (Unix timestamp) when the message was last edited
12111213
//@forward_info Information about the initial message sender; may be null if none or unknown
1214+
//@import_info Information about the initial message for messages created with importMessages; may be null if the message isn't imported
12121215
//@interaction_info Information about interactions with the message; may be null if none
12131216
//@unread_reactions Information about unread reactions added to the message
12141217
//@reply_to Information about the message or the story this message is replying to; may be null if none
@@ -1222,7 +1225,7 @@ messageReplyToStory#708ca939 story_sender_chat_id:int53 story_id:int32 = Message
12221225
//@restriction_reason If non-empty, contains a human-readable description of the reason why access to this message must be restricted
12231226
//@content Content of the message
12241227
//@reply_markup Reply markup for the message; may be null if none
1225-
message#a516cc02 id:int53 sender_id:MessageSender chat_id:int53 sending_state:MessageSendingState scheduling_state:MessageSchedulingState is_outgoing:Bool is_pinned:Bool can_be_edited:Bool can_be_forwarded:Bool can_be_saved:Bool can_be_deleted_only_for_self:Bool can_be_deleted_for_all_users:Bool can_get_added_reactions:Bool can_get_statistics:Bool can_get_message_thread:Bool can_get_viewers:Bool can_get_media_timestamp_links:Bool can_report_reactions:Bool has_timestamped_media:Bool is_channel_post:Bool is_topic_message:Bool contains_unread_mention:Bool date:int32 edit_date:int32 forward_info:messageForwardInfo interaction_info:messageInteractionInfo unread_reactions:vector<unreadReaction> reply_to:MessageReplyTo message_thread_id:int53 self_destruct_type:MessageSelfDestructType self_destruct_in:double auto_delete_in:double via_bot_user_id:int53 author_signature:string media_album_id:int64 restriction_reason:string content:MessageContent reply_markup:ReplyMarkup = Message;
1228+
message#12947545 id:int53 sender_id:MessageSender chat_id:int53 sending_state:MessageSendingState scheduling_state:MessageSchedulingState is_outgoing:Bool is_pinned:Bool can_be_edited:Bool can_be_forwarded:Bool can_be_saved:Bool can_be_deleted_only_for_self:Bool can_be_deleted_for_all_users:Bool can_get_added_reactions:Bool can_get_statistics:Bool can_get_message_thread:Bool can_get_viewers:Bool can_get_media_timestamp_links:Bool can_report_reactions:Bool has_timestamped_media:Bool is_channel_post:Bool is_topic_message:Bool contains_unread_mention:Bool date:int32 edit_date:int32 forward_info:messageForwardInfo import_info:messageImportInfo interaction_info:messageInteractionInfo unread_reactions:vector<unreadReaction> reply_to:MessageReplyTo message_thread_id:int53 self_destruct_type:MessageSelfDestructType self_destruct_in:double auto_delete_in:double via_bot_user_id:int53 author_signature:string media_album_id:int64 restriction_reason:string content:MessageContent reply_markup:ReplyMarkup = Message;
12261229

12271230
//@description Contains a list of messages
12281231
//@total_count Approximate total number of messages found
@@ -2942,14 +2945,9 @@ messageUserShared#d4dcb77c user_id:int53 button_id:int32 = MessageContent;
29422945
//@button_id Identifier of the keyboard button with the request
29432946
messageChatShared#22db7091 chat_id:int53 button_id:int32 = MessageContent;
29442947

2945-
//@description The current user has connected a website by logging in using Telegram Login Widget on it
2946-
//@domain_name Domain name of the connected website
2947-
messageWebsiteConnected#bff3a408 domain_name:string = MessageContent;
2948-
29492948
//@description The user allowed the bot to send messages
2950-
//@web_app Information about the Web App, which requested the access; may be null if none or the Web App was opened from the attachment menu
2951-
//@by_request True, if user allowed the bot to send messages by an explicit call to allowBotToSendMessages
2952-
messageBotWriteAccessAllowed#322dfdaa web_app:webApp by_request:Bool = MessageContent;
2949+
//@reason The reason why the bot was allowed to write messages
2950+
messageBotWriteAccessAllowed#9a8ab7b4 reason:BotWriteAccessAllowReason = MessageContent;
29532951

29542952
//@description Data from a Web App has been sent to a bot
29552953
//@button_text Text of the keyboardButtonTypeWebApp button, which opened the Web App
@@ -3601,14 +3599,15 @@ storyInfo#8997c352 story_id:int32 date:int32 is_for_close_friends:Bool = StoryIn
36013599
chatActiveStories#d923d773 chat_id:int53 list:StoryList order:int53 max_read_story_id:int32 stories:vector<storyInfo> = ChatActiveStories;
36023600

36033601
//@description Describes current boost status of a chat
3602+
//@boost_url An HTTP URL, which can be used to boost the chat
36043603
//@is_boosted True, if the current user has already boosted the chat
36053604
//@level Current boost level of the chat
36063605
//@boost_count The number of times the chat was boosted
36073606
//@current_level_boost_count The number of boosts added to reach the current level
36083607
//@next_level_boost_count The number of boosts needed to reach the next level; 0 if the next level isn't available
36093608
//@premium_member_count Approximate number of Telegram Premium subscribers joined the chat; always 0 if the current user isn't an administrator in the chat
36103609
//@premium_member_percentage A percentage of Telegram Premium subscribers joined the chat; always 0 if the current user isn't an administrator in the chat
3611-
chatBoostStatus#cd6a3f87 is_boosted:Bool level:int32 boost_count:int32 current_level_boost_count:int32 next_level_boost_count:int32 premium_member_count:int32 premium_member_percentage:double = ChatBoostStatus;
3610+
chatBoostStatus#dc02a4b2 boost_url:string is_boosted:Bool level:int32 boost_count:int32 current_level_boost_count:int32 next_level_boost_count:int32 premium_member_count:int32 premium_member_percentage:double = ChatBoostStatus;
36123611

36133612
//@description Describes a boost of a chat
36143613
//@user_id Identifier of a user that boosted the chat
@@ -3699,7 +3698,7 @@ callStateReady#ce59c044 protocol:callProtocol servers:vector<callServer> config:
36993698
callStateHangingUp#80d0f2aa = CallState;
37003699

37013700
//@description The call has ended successfully
3702-
//@reason The reason, why the call has ended
3701+
//@reason The reason why the call has ended
37033702
//@need_rating True, if the call rating must be sent to the server
37043703
//@need_debug_information True, if the call debug information must be sent to the server
37053704
//@need_log True, if the call log must be sent to the server
@@ -3855,8 +3854,9 @@ phoneNumberAuthenticationSettings#c6e19fa1 allow_flash_call:Bool allow_missed_ca
38553854
//@description Represents a reaction applied to a message
38563855
//@type Type of the reaction
38573856
//@sender_id Identifier of the chat member, applied the reaction
3857+
//@is_outgoing True, if the reaction was added by the current user
38583858
//@date Point in time (Unix timestamp) when the reaction was added
3859-
addedReaction#63514a16 type:ReactionType sender_id:MessageSender date:int32 = AddedReaction;
3859+
addedReaction#4b04819d type:ReactionType sender_id:MessageSender is_outgoing:Bool date:int32 = AddedReaction;
38603860

38613861
//@description Represents a list of reactions added to a message
38623862
//@total_count The total number of found reactions
@@ -3962,6 +3962,22 @@ attachmentMenuBot#2176d831 bot_user_id:int53 supports_self_chat:Bool supports_us
39623962
//@inline_message_id Identifier of the sent inline message, if known
39633963
sentWebAppMessage#4a24eec0 inline_message_id:string = SentWebAppMessage;
39643964

3965+
//@class BotWriteAccessAllowReason @description Describes a reason why a bot was allowed to write messages to the current user
3966+
3967+
//@description The user connected a website by logging in using Telegram Login Widget on it
3968+
//@domain_name Domain name of the connected website
3969+
botWriteAccessAllowReasonConnectedWebsite#782eafe3 domain_name:string = BotWriteAccessAllowReason;
3970+
3971+
//@description The user added the bot to attachment or side menu using toggleBotIsAddedToAttachmentMenu
3972+
botWriteAccessAllowReasonAddedToAttachmentMenu#828b5f9d = BotWriteAccessAllowReason;
3973+
3974+
//@description The user launched a Web App using getWebAppLinkUrl
3975+
//@web_app Information about the Web App
3976+
botWriteAccessAllowReasonLaunchedWebApp#f1a504d7 web_app:webApp = BotWriteAccessAllowReason;
3977+
3978+
//@description The user accepted bot's request to send messages with allowBotToSendMessages
3979+
botWriteAccessAllowReasonAcceptedRequest#89c63bfc = BotWriteAccessAllowReason;
3980+
39653981
//@description Contains an HTTP URL
39663982
//@url The URL
39673983
httpUrl#87b775a6 url:string = HttpUrl;

tdapi/tl_added_reaction_gen.go

Lines changed: 58 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)