From f2286b6717722789fae1a8d1b76aeb0c65abc08e Mon Sep 17 00:00:00 2001 From: GitHub Date: Wed, 15 Dec 2021 07:44:55 +0000 Subject: [PATCH] feat(schema): update TDLib to the latest layer --- _schema/tdapi.tl | 26 +++++++++++++------------- tdapi/tl_sponsored_message_gen.go | 2 +- tdapi/tl_supergroup_gen.go | 2 +- tdapi/tl_venue_gen.go | 2 +- tdapi/tl_web_page_gen.go | 5 ++--- tdapi/tl_web_page_instant_view_gen.go | 2 +- 6 files changed, 19 insertions(+), 20 deletions(-) diff --git a/_schema/tdapi.tl b/_schema/tdapi.tl index c5d643ca3e..9d644bcbd6 100644 --- a/_schema/tdapi.tl +++ b/_schema/tdapi.tl @@ -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: 0af3149201f87499362b4a2f9b7169f4879e6542e909316220916c2161aecaf8 +// SHA256: ee6e7ecf3ee84a1726f4ea4e51944588bc7fbfb4baca69013a604b8f5765ee8b double#2210c154 ? = Double; @@ -395,7 +395,7 @@ location#e5925f73 latitude:double longitude:double horizontal_accuracy:double = //@location Venue location; as defined by the sender //@title Venue name; as defined by the sender //@address Venue address; as defined by the sender -//@provider Provider of the venue database; as defined by the sender. Currently only "foursquare" and "gplaces" (Google Places) need to be supported +//@provider Provider of the venue database; as defined by the sender. Currently, only "foursquare" and "gplaces" (Google Places) need to be supported //@id Identifier of the venue in the provider database; as defined by the sender //@type Type of the venue in the provider database; as defined by the sender venue#3fcd1af9 location:location title:string address:string provider:string id:string type:string = Venue; @@ -767,7 +767,7 @@ basicGroupFullInfo#f191cfca photo:chatPhoto description:string creator_user_id:i //@username Username of the supergroup or channel; empty for private supergroups or channels //@date Point in time (Unix timestamp) when the current user joined, or the point in time when the supergroup or channel was created, in case the user is not a member //@status Status of the current user in the supergroup or channel; custom title will be always empty -//@member_count Number of members in the supergroup or channel; 0 if unknown. Currently it is guaranteed to be known only if the supergroup or channel was received through searchPublicChats, searchChatsNearby, getInactiveSupergroupChats, getSuitableDiscussionChats, getGroupsInCommon, or getUserPrivacySettingRules +//@member_count Number of members in the supergroup or channel; 0 if unknown. Currently, it is guaranteed to be known only if the supergroup or channel was received through searchPublicChats, searchChatsNearby, getInactiveSupergroupChats, getSuitableDiscussionChats, getGroupsInCommon, or getUserPrivacySettingRules //@has_linked_chat True, if the channel has a discussion group, or the supergroup is the designated discussion group for a channel //@has_location True, if the supergroup is connected to a location, i.e. the supergroup is a location-based supergroup //@sign_messages True, if messages sent to the channel need to contain information about the sender. This field is only applicable to channels @@ -972,7 +972,7 @@ messageCalendar#2582bbd7 total_count:int32 days:vector = Mes //@id Unique sponsored message identifier //@sponsor_chat_id Chat identifier //@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 +//@content Content of the message. Currently, can be only of the type messageText sponsoredMessage#cfbd422 id:int32 sponsor_chat_id:int53 link:InternalLinkType content:MessageContent = SponsoredMessage; //@description Contains a list of sponsored messages @@ -1587,7 +1587,7 @@ pageBlockMap#5a0f7013 location:location zoom:int32 width:int32 height:int32 capt //@description Describes an instant view page for a web page //@page_blocks Content of the web page //@view_count Number of the instant view views; 0 if unknown -//@version Version of the instant view, currently can be 1 or 2 +//@version Version of the instant view; currently, can be 1 or 2 //@is_rtl True, if the instant view must be shown from right to left //@is_full True, if the instant view contains the full page. A network request might be needed to get the full web page instant view //@feedback_link An internal link to be opened to leave feedback about the instant view @@ -1609,12 +1609,12 @@ webPageInstantView#2c0ec99c page_blocks:vector view_count:int32 versi //@author Author of the content //@animation Preview of the content as an animation, if available; may be null //@audio Preview of the content as an audio file, if available; may be null -//@document Preview of the content as a document, if available (currently only available for small PDF files and ZIP archives); may be null +//@document Preview of the content as a document, if available; may be null //@sticker Preview of the content as a sticker for small WEBP files, if available; may be null //@video Preview of the content as a video, if available; may be null //@video_note Preview of the content as a video note, if available; may be null //@voice_note Preview of the content as a voice note, if available; may be null -//@instant_view_version Version of instant view, available for the web page (currently can be 1 or 2), 0 if none +//@instant_view_version Version of instant view, available for the web page (currently, can be 1 or 2), 0 if none webPage#dd96962e url:string display_url:string type:string site_name:string title:string description:formattedText photo:photo embed_url:string embed_type:string embed_width:int32 embed_height:int32 duration:int32 author:string animation:animation audio:audio document:document sticker:sticker video:video video_note:videoNote voice_note:voiceNote instant_view_version:int32 = WebPage; //@description Contains information about a country @@ -5330,11 +5330,11 @@ loadChats#8f9b7d7b chat_list:ChatList limit:int32 = Ok; //@limit The maximum number of chats to be returned getChats#c604bac2 chat_list:ChatList limit:int32 = Chats; -//@description Searches a public chat by its username. Currently only private chats, supergroups and channels can be public. Returns the chat if found; otherwise an error is returned +//@description Searches a public chat by its username. Currently, only private chats, supergroups and channels can be public. Returns the chat if found; otherwise an error is returned //@username Username to be resolved searchPublicChat#3316d9ad username:string = Chat; -//@description Searches public chats by looking for specified query in their username and title. Currently only private chats, supergroups and channels can be public. Returns a meaningful number of results. +//@description Searches public chats by looking for specified query in their username and title. Currently, only private chats, supergroups and channels can be public. Returns a meaningful number of results. searchPublicChats#39d6e7b9 query:string = Chats; //@description Searches for the specified query in the title and username of already known chats, this is an offline request. Returns chats in the order seen in the main chat list @@ -5566,7 +5566,7 @@ setChatDefaultMessageSender#84544f5a chat_id:int53 default_message_sender_id:Mes //@input_message_content The content of the message to be sent sendMessage#393f599d chat_id:int53 message_thread_id:int53 reply_to_message_id:int53 options:messageSendOptions reply_markup:ReplyMarkup input_message_content:InputMessageContent = Message; -//@description Sends 2-10 messages grouped together into an album. Currently only audio, document, photo and video messages can be grouped into an album. Documents and audio files can be only grouped in an album with messages of the same type. Returns sent messages +//@description Sends 2-10 messages grouped together into an album. Currently, only audio, document, photo and video messages can be grouped into an album. Documents and audio files can be only grouped in an album with messages of the same type. Returns sent messages //@chat_id Target chat //@message_thread_id If not 0, a message thread identifier in which the messages will be sent //@reply_to_message_id Identifier of a message to reply to or 0 @@ -6096,7 +6096,7 @@ leaveChat#93377a61 chat_id:int53 = Ok; //@forward_limit The number of earlier messages from the chat to be forwarded to the new member; up to 100. Ignored for supergroups and channels, or if the added user is a bot addChatMember#1dc4a5fa chat_id:int53 user_id:int53 forward_limit:int32 = Ok; -//@description Adds multiple new members to a chat. Currently this method is only available for supergroups and channels. This method can't be used to join a chat. Members can't be added to a channel if it has more than 200 members +//@description Adds multiple new members to a chat. Currently, this method is only available for supergroups and channels. This method can't be used to join a chat. Members can't be added to a channel if it has more than 200 members //@chat_id Chat identifier //@user_ids Identifiers of the users to be added to the chat. The maximum number of added users is 20 for supergroups and 100 for channels addChatMembers#b4f60138 chat_id:int53 user_ids:vector = Ok; @@ -6595,7 +6595,7 @@ getArchivedStickerSets#7706ef86 is_masks:Bool offset_sticker_set_id:int64 limit: //@limit The maximum number of sticker sets to be returned; up to 100. For optimal performance, the number of returned sticker sets is chosen by TDLib and can be smaller than the specified limit, even if the end of the list has not been reached getTrendingStickerSets#a6ea7d44 offset:int32 limit:int32 = StickerSets; -//@description Returns a list of sticker sets attached to a file. Currently only photos and videos can have attached sticker sets +//@description Returns a list of sticker sets attached to a file. Currently, only photos and videos can have attached sticker sets //@file_id File identifier getAttachedStickerSets#4d9d930d file_id:int32 = StickerSets; @@ -7016,7 +7016,7 @@ reportChat#a19024af chat_id:int53 message_ids:vector reason:ChatReportRea //@text Additional report details; 0-1024 characters reportChatPhoto#2bc9e924 chat_id:int53 file_id:int32 reason:ChatReportReason text:string = Ok; -//@description Returns detailed statistics about a chat. Currently this method can be used only for supergroups and channels. Can be used only if supergroupFullInfo.can_get_statistics == true +//@description Returns detailed statistics about a chat. Currently, this method can be used only for supergroups and channels. Can be used only if supergroupFullInfo.can_get_statistics == true //@chat_id Chat identifier //@is_dark Pass true if a dark theme is used by the application getChatStatistics#137e8198 chat_id:int53 is_dark:Bool = ChatStatistics; diff --git a/tdapi/tl_sponsored_message_gen.go b/tdapi/tl_sponsored_message_gen.go index 179ae4bd99..f749fd6b38 100644 --- a/tdapi/tl_sponsored_message_gen.go +++ b/tdapi/tl_sponsored_message_gen.go @@ -40,7 +40,7 @@ type SponsoredMessage struct { // 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 Link InternalLinkTypeClass - // Content of the message + // Content of the message. Currently, can be only of the type messageText Content MessageContentClass } diff --git a/tdapi/tl_supergroup_gen.go b/tdapi/tl_supergroup_gen.go index 14288ea557..8e33bcbef6 100644 --- a/tdapi/tl_supergroup_gen.go +++ b/tdapi/tl_supergroup_gen.go @@ -43,7 +43,7 @@ type Supergroup struct { // Status of the current user in the supergroup or channel; custom title will be always // empty Status ChatMemberStatusClass - // Number of members in the supergroup or channel; 0 if unknown. Currently it is + // Number of members in the supergroup or channel; 0 if unknown. Currently, it is // guaranteed to be known only if the supergroup or channel was received through // searchPublicChats, searchChatsNearby, getInactiveSupergroupChats, // getSuitableDiscussionChats, getGroupsInCommon, or getUserPrivacySettingRules diff --git a/tdapi/tl_venue_gen.go b/tdapi/tl_venue_gen.go index dcfc1dcc9f..d742f764da 100644 --- a/tdapi/tl_venue_gen.go +++ b/tdapi/tl_venue_gen.go @@ -39,7 +39,7 @@ type Venue struct { Title string // Venue address; as defined by the sender Address string - // Provider of the venue database; as defined by the sender. Currently only "foursquare" + // Provider of the venue database; as defined by the sender. Currently, only "foursquare" // and "gplaces" (Google Places) need to be supported Provider string // Identifier of the venue in the provider database; as defined by the sender diff --git a/tdapi/tl_web_page_gen.go b/tdapi/tl_web_page_gen.go index 227783b209..9b6e84d65f 100644 --- a/tdapi/tl_web_page_gen.go +++ b/tdapi/tl_web_page_gen.go @@ -64,8 +64,7 @@ type WebPage struct { Animation Animation // Preview of the content as an audio file, if available; may be null Audio Audio - // Preview of the content as a document, if available (currently only available for small - // PDF files and ZIP archives); may be null + // Preview of the content as a document, if available; may be null Document Document // Preview of the content as a sticker for small WEBP files, if available; may be null Sticker Sticker @@ -75,7 +74,7 @@ type WebPage struct { VideoNote VideoNote // Preview of the content as a voice note, if available; may be null VoiceNote VoiceNote - // Version of instant view, available for the web page (currently can be 1 or 2), 0 if + // Version of instant view, available for the web page (currently, can be 1 or 2), 0 if // none InstantViewVersion int32 } diff --git a/tdapi/tl_web_page_instant_view_gen.go b/tdapi/tl_web_page_instant_view_gen.go index c553763802..8c13319ce5 100644 --- a/tdapi/tl_web_page_instant_view_gen.go +++ b/tdapi/tl_web_page_instant_view_gen.go @@ -37,7 +37,7 @@ type WebPageInstantView struct { PageBlocks []PageBlockClass // Number of the instant view views; 0 if unknown ViewCount int32 - // Version of the instant view, currently can be 1 or 2 + // Version of the instant view; currently, can be 1 or 2 Version int32 // True, if the instant view must be shown from right to left IsRtl bool