Skip to content

Commit

Permalink
Merge pull request #1216 from gotd/feat/update-tdlib-schema
Browse files Browse the repository at this point in the history
Update TDLib schema to the latest layer
  • Loading branch information
ernado authored Oct 14, 2023
2 parents f63c245 + 9810375 commit 6c071c1
Show file tree
Hide file tree
Showing 11 changed files with 1,473 additions and 656 deletions.
50 changes: 33 additions & 17 deletions _schema/tdapi.tl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Code generated by ./cmd/dltl, DO NOT EDIT.
//
// Source: https://raw.githubusercontent.com/tdlib/td/master/td/generate/scheme/td_api.tl
// SHA256: a0a75f59a19dfe7e37e43c49cc30b4552866e9b763601de51c5a47da9612b2d1
// SHA256: e2751095a82534b34946191be6b25566410f0af3343af7370609ac0fedcebca7

double#2210c154 ? = Double;

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

//@description The message was imported from an exported message history
//@sender_name Name of the sender
messageForwardOriginMessageImport#d3eb2e21 sender_name:string = MessageForwardOrigin;

//@class ReactionType @description Describes type of message reaction

//@description A reaction with an emoji
Expand All @@ -1130,6 +1126,11 @@ reactionTypeCustomEmoji#c50b42f3 custom_emoji_id:int64 = ReactionType;
//@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
messageForwardInfo#ec7dcac8 origin:MessageForwardOrigin date:int32 public_service_announcement_type:string from_chat_id:int53 from_message_id:int53 = MessageForwardInfo;

//@description Contains information about a message created with importMessages
//@sender_name Name of the original sender
//@date Point in time (Unix timestamp) when the message was originally sent
messageImportInfo#e6dfabcf sender_name:string date:int32 = MessageImportInfo;

//@description Contains information about replies to a message
//@reply_count Number of times the message was directly or indirectly replied
//@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
Expand All @@ -1142,8 +1143,9 @@ messageReplyInfo#69240cb9 reply_count:int32 recent_replier_ids:vector<MessageSen
//@type Type of the reaction
//@total_count Number of times the reaction was added
//@is_chosen True, if the reaction is chosen by the current user
//@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
//@recent_sender_ids Identifiers of at most 3 recent message senders, added the reaction; available in private, basic group and supergroup chats
messageReaction#2bb15e3a type:ReactionType total_count:int32 is_chosen:Bool recent_sender_ids:vector<MessageSender> = MessageReaction;
messageReaction#7d9e9864 type:ReactionType total_count:int32 is_chosen:Bool used_sender_id:MessageSender recent_sender_ids:vector<MessageSender> = MessageReaction;

//@description Contains information about interactions with a message
//@view_count Number of times the message was viewed
Expand Down Expand Up @@ -1209,6 +1211,7 @@ messageReplyToStory#708ca939 story_sender_chat_id:int53 story_id:int32 = Message
//@date Point in time (Unix timestamp) when the message was sent
//@edit_date Point in time (Unix timestamp) when the message was last edited
//@forward_info Information about the initial message sender; may be null if none or unknown
//@import_info Information about the initial message for messages created with importMessages; may be null if the message isn't imported
//@interaction_info Information about interactions with the message; may be null if none
//@unread_reactions Information about unread reactions added to the message
//@reply_to Information about the message or the story this message is replying to; may be null if none
Expand All @@ -1222,7 +1225,7 @@ messageReplyToStory#708ca939 story_sender_chat_id:int53 story_id:int32 = Message
//@restriction_reason If non-empty, contains a human-readable description of the reason why access to this message must be restricted
//@content Content of the message
//@reply_markup Reply markup for the message; may be null if none
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;
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;

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

//@description The current user has connected a website by logging in using Telegram Login Widget on it
//@domain_name Domain name of the connected website
messageWebsiteConnected#bff3a408 domain_name:string = MessageContent;

//@description The user allowed the bot to send messages
//@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
//@by_request True, if user allowed the bot to send messages by an explicit call to allowBotToSendMessages
messageBotWriteAccessAllowed#322dfdaa web_app:webApp by_request:Bool = MessageContent;
//@reason The reason why the bot was allowed to write messages
messageBotWriteAccessAllowed#9a8ab7b4 reason:BotWriteAccessAllowReason = MessageContent;

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

//@description Describes current boost status of a chat
//@boost_url An HTTP URL, which can be used to boost the chat
//@is_boosted True, if the current user has already boosted the chat
//@level Current boost level of the chat
//@boost_count The number of times the chat was boosted
//@current_level_boost_count The number of boosts added to reach the current level
//@next_level_boost_count The number of boosts needed to reach the next level; 0 if the next level isn't available
//@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
//@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
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;
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;

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

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

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

//@class BotWriteAccessAllowReason @description Describes a reason why a bot was allowed to write messages to the current user

//@description The user connected a website by logging in using Telegram Login Widget on it
//@domain_name Domain name of the connected website
botWriteAccessAllowReasonConnectedWebsite#782eafe3 domain_name:string = BotWriteAccessAllowReason;

//@description The user added the bot to attachment or side menu using toggleBotIsAddedToAttachmentMenu
botWriteAccessAllowReasonAddedToAttachmentMenu#828b5f9d = BotWriteAccessAllowReason;

//@description The user launched a Web App using getWebAppLinkUrl
//@web_app Information about the Web App
botWriteAccessAllowReasonLaunchedWebApp#f1a504d7 web_app:webApp = BotWriteAccessAllowReason;

//@description The user accepted bot's request to send messages with allowBotToSendMessages
botWriteAccessAllowReasonAcceptedRequest#89c63bfc = BotWriteAccessAllowReason;

//@description Contains an HTTP URL
//@url The URL
httpUrl#87b775a6 url:string = HttpUrl;
Expand Down
82 changes: 58 additions & 24 deletions tdapi/tl_added_reaction_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 6c071c1

Please sign in to comment.