1
1
// Code generated by ./cmd/dltl, DO NOT EDIT.
2
2
//
3
3
// Source: https://raw.githubusercontent.com/tdlib/td/master/td/generate/scheme/td_api.tl
4
- // SHA256: a0a75f59a19dfe7e37e43c49cc30b4552866e9b763601de51c5a47da9612b2d1
4
+ // SHA256: e2751095a82534b34946191be6b25566410f0af3343af7370609ac0fedcebca7
5
5
6
6
double#2210c154 ? = Double;
7
7
@@ -1108,10 +1108,6 @@ messageForwardOriginHiddenUser#efd4eee3 sender_name:string = MessageForwardOrigi
1108
1108
//@author_signature Original post author signature
1109
1109
messageForwardOriginChannel#58dabee3 chat_id:int53 message_id:int53 author_signature:string = MessageForwardOrigin;
1110
1110
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
-
1115
1111
//@class ReactionType @description Describes type of message reaction
1116
1112
1117
1113
//@description A reaction with an emoji
@@ -1130,6 +1126,11 @@ reactionTypeCustomEmoji#c50b42f3 custom_emoji_id:int64 = ReactionType;
1130
1126
//@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
1131
1127
messageForwardInfo#ec7dcac8 origin:MessageForwardOrigin date:int32 public_service_announcement_type:string from_chat_id:int53 from_message_id:int53 = MessageForwardInfo;
1132
1128
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
+
1133
1134
//@description Contains information about replies to a message
1134
1135
//@reply_count Number of times the message was directly or indirectly replied
1135
1136
//@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
1142
1143
//@type Type of the reaction
1143
1144
//@total_count Number of times the reaction was added
1144
1145
//@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
1145
1147
//@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;
1147
1149
1148
1150
//@description Contains information about interactions with a message
1149
1151
//@view_count Number of times the message was viewed
@@ -1209,6 +1211,7 @@ messageReplyToStory#708ca939 story_sender_chat_id:int53 story_id:int32 = Message
1209
1211
//@date Point in time (Unix timestamp) when the message was sent
1210
1212
//@edit_date Point in time (Unix timestamp) when the message was last edited
1211
1213
//@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
1212
1215
//@interaction_info Information about interactions with the message; may be null if none
1213
1216
//@unread_reactions Information about unread reactions added to the message
1214
1217
//@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
1222
1225
//@restriction_reason If non-empty, contains a human-readable description of the reason why access to this message must be restricted
1223
1226
//@content Content of the message
1224
1227
//@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;
1226
1229
1227
1230
//@description Contains a list of messages
1228
1231
//@total_count Approximate total number of messages found
@@ -2942,14 +2945,9 @@ messageUserShared#d4dcb77c user_id:int53 button_id:int32 = MessageContent;
2942
2945
//@button_id Identifier of the keyboard button with the request
2943
2946
messageChatShared#22db7091 chat_id:int53 button_id:int32 = MessageContent;
2944
2947
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
-
2949
2948
//@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;
2953
2951
2954
2952
//@description Data from a Web App has been sent to a bot
2955
2953
//@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
3601
3599
chatActiveStories#d923d773 chat_id:int53 list:StoryList order:int53 max_read_story_id:int32 stories:vector<storyInfo> = ChatActiveStories;
3602
3600
3603
3601
//@description Describes current boost status of a chat
3602
+ //@boost_url An HTTP URL, which can be used to boost the chat
3604
3603
//@is_boosted True, if the current user has already boosted the chat
3605
3604
//@level Current boost level of the chat
3606
3605
//@boost_count The number of times the chat was boosted
3607
3606
//@current_level_boost_count The number of boosts added to reach the current level
3608
3607
//@next_level_boost_count The number of boosts needed to reach the next level; 0 if the next level isn't available
3609
3608
//@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
3610
3609
//@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;
3612
3611
3613
3612
//@description Describes a boost of a chat
3614
3613
//@user_id Identifier of a user that boosted the chat
@@ -3699,7 +3698,7 @@ callStateReady#ce59c044 protocol:callProtocol servers:vector<callServer> config:
3699
3698
callStateHangingUp#80d0f2aa = CallState;
3700
3699
3701
3700
//@description The call has ended successfully
3702
- //@reason The reason, why the call has ended
3701
+ //@reason The reason why the call has ended
3703
3702
//@need_rating True, if the call rating must be sent to the server
3704
3703
//@need_debug_information True, if the call debug information must be sent to the server
3705
3704
//@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
3855
3854
//@description Represents a reaction applied to a message
3856
3855
//@type Type of the reaction
3857
3856
//@sender_id Identifier of the chat member, applied the reaction
3857
+ //@is_outgoing True, if the reaction was added by the current user
3858
3858
//@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;
3860
3860
3861
3861
//@description Represents a list of reactions added to a message
3862
3862
//@total_count The total number of found reactions
@@ -3962,6 +3962,22 @@ attachmentMenuBot#2176d831 bot_user_id:int53 supports_self_chat:Bool supports_us
3962
3962
//@inline_message_id Identifier of the sent inline message, if known
3963
3963
sentWebAppMessage#4a24eec0 inline_message_id:string = SentWebAppMessage;
3964
3964
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
+
3965
3981
//@description Contains an HTTP URL
3966
3982
//@url The URL
3967
3983
httpUrl#87b775a6 url:string = HttpUrl;
0 commit comments