Skip to content

Commit

Permalink
Merge pull request #653 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 Dec 31, 2021
2 parents cff60c2 + fdb6306 commit 2a2238c
Show file tree
Hide file tree
Showing 7 changed files with 280 additions and 60 deletions.
19 changes: 12 additions & 7 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: 66f165dbc5a7ac44c699cde67fc3a2744b6255ea4aac0fc097aecbf35ab771a8
// SHA256: 72961cd47001b453cf1830f01ece33f0baf3fa8a2264e2294f6c3ab527b13814

double#2210c154 ? = Double;

Expand Down Expand Up @@ -970,10 +970,11 @@ messageCalendar#2582bbd7 total_count:int32 days:vector<messageCalendarDay> = Mes

//@description Describes a sponsored message
//@message_id Message identifier; unique for the chat to which the sponsored message belongs among both ordinary and sponsored messages
//@sponsor_chat_id Chat identifier
//@sponsor_chat_id Sponsor chat identifier; 0 if the sponsor chat is accessible through an invite link
//@sponsor_chat_info Information about the sponsor chat; may be null unless sponsor_chat_id == 0
//@link An internal link to be opened when the sponsored message is clicked; may be null. If null, the sponsor chat needs to be opened instead
//@content Content of the message. Currently, can be only of the type messageText
sponsoredMessage#9899869f message_id:int53 sponsor_chat_id:int53 link:InternalLinkType content:MessageContent = SponsoredMessage;
sponsoredMessage#ad7c99d8 message_id:int53 sponsor_chat_id:int53 sponsor_chat_info:chatInviteLinkInfo link:InternalLinkType content:MessageContent = SponsoredMessage;

//@class NotificationSettingsScope @description Describes the types of chats to which notification settings are relevant

Expand Down Expand Up @@ -2366,6 +2367,9 @@ textEntityTypeUnderline#2f39cf92 = TextEntityType;
//@description A strikethrough text
textEntityTypeStrikethrough#394fc4fa = TextEntityType;

//@description A spoiler text. Not supported in secret chats
textEntityTypeSpoiler#206d15bb = TextEntityType;

//@description Text that must be formatted as if inside a code HTML tag
textEntityTypeCode#c5e9c94a = TextEntityType;

Expand Down Expand Up @@ -2406,8 +2410,9 @@ messageSchedulingStateSendWhenOnline#7cbfd808 = MessageSchedulingState;
//@description Options to be used when a message is sent
//@disable_notification Pass true to disable notification for the message
//@from_background Pass true if the message is sent from the background
//@protect_content Pass true if the content of the message must be protected from forwarding and saving; for bots only
//@scheduling_state Message scheduling state; pass null to send message immediately. Messages sent to a secret chat, live location messages and self-destructing messages can't be scheduled
messageSendOptions#3682d6ba disable_notification:Bool from_background:Bool scheduling_state:MessageSchedulingState = MessageSendOptions;
messageSendOptions#cc149434 disable_notification:Bool from_background:Bool protect_content:Bool scheduling_state:MessageSchedulingState = MessageSendOptions;

//@description Options to be used when a message content is copied without reference to the original sender. Service messages and messageInvoice can't be copied
//@send_copy True, if content of the message needs to be copied without reference to the original sender. Always true if the message is forwarded to a secret chat or is local
Expand All @@ -2418,7 +2423,7 @@ messageCopyOptions#48076039 send_copy:Bool replace_caption:Bool new_caption:form
//@class InputMessageContent @description The content of a message to send

//@description A text message
//@text Formatted text to be sent; 1-GetOption("message_text_length_max") characters. Only Bold, Italic, Underline, Strikethrough, Code, Pre, PreCode, TextUrl and MentionName entities are allowed to be specified manually
//@text Formatted text to be sent; 1-GetOption("message_text_length_max") characters. Only Bold, Italic, Underline, Strikethrough, Spoiler, Code, Pre, PreCode, TextUrl and MentionName entities are allowed to be specified manually
//@disable_web_page_preview True, if rich web page previews for URLs in the message text must be disabled
//@clear_draft True, if a chat message draft must be deleted
inputMessageText#eb9b098 text:formattedText disable_web_page_preview:Bool clear_draft:Bool = InputMessageContent;
Expand Down Expand Up @@ -5703,13 +5708,13 @@ editMessageSchedulingState#ae2a0bc0 chat_id:int53 message_id:int53 scheduling_st
//@text The text in which to look for entites
getTextEntities#eba543fb text:string = TextEntities;

//@description Parses Bold, Italic, Underline, Strikethrough, Code, Pre, PreCode, TextUrl and MentionName entities contained in the text. Can be called synchronously
//@description Parses Bold, Italic, Underline, Strikethrough, Spoiler, Code, Pre, PreCode, TextUrl and MentionName entities contained in the text. Can be called synchronously
//@text The text to parse
//@parse_mode Text parse mode
parseTextEntities#9a1fc29f text:string parse_mode:TextParseMode = FormattedText;

//@description Parses Markdown entities in a human-friendly format, ignoring markup errors. Can be called synchronously
//@text The text to parse. For example, "__italic__ ~~strikethrough~~ **bold** `code` ```pre``` __[italic__ text_url](telegram.org) __italic**bold italic__bold**"
//@text The text to parse. For example, "__italic__ ~~strikethrough~~ ||spoiler|| **bold** `code` ```pre``` __[italic__ text_url](telegram.org) __italic**bold italic__bold**"
parseMarkdown#2d153aef text:formattedText = FormattedText;

//@description Replaces text entities with Markdown formatting in a human-friendly format. Entities that can't be represented in Markdown unambiguously are kept as is. Can be called synchronously
Expand Down
4 changes: 2 additions & 2 deletions tdapi/tl_input_message_content_gen.go

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

74 changes: 54 additions & 20 deletions tdapi/tl_message_send_options_gen.go

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

4 changes: 2 additions & 2 deletions tdapi/tl_parse_markdown_gen.go

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

8 changes: 6 additions & 2 deletions tdapi/tl_registry_gen.go

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

Loading

0 comments on commit 2a2238c

Please sign in to comment.