Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update TDLib schema to the latest layer #627

Merged
merged 1 commit into from
Dec 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 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: 0af3149201f87499362b4a2f9b7169f4879e6542e909316220916c2161aecaf8
// SHA256: ee6e7ecf3ee84a1726f4ea4e51944588bc7fbfb4baca69013a604b8f5765ee8b

double#2210c154 ? = Double;

Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -972,7 +972,7 @@ messageCalendar#2582bbd7 total_count:int32 days:vector<messageCalendarDay> = 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
Expand Down Expand Up @@ -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
Expand All @@ -1609,12 +1609,12 @@ webPageInstantView#2c0ec99c page_blocks:vector<PageBlock> 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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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<int53> = Ok;
Expand Down Expand Up @@ -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;

Expand Down Expand Up @@ -7016,7 +7016,7 @@ reportChat#a19024af chat_id:int53 message_ids:vector<int53> 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;
Expand Down
2 changes: 1 addition & 1 deletion tdapi/tl_sponsored_message_gen.go

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

2 changes: 1 addition & 1 deletion tdapi/tl_supergroup_gen.go

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

2 changes: 1 addition & 1 deletion tdapi/tl_venue_gen.go

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

5 changes: 2 additions & 3 deletions tdapi/tl_web_page_gen.go

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

2 changes: 1 addition & 1 deletion tdapi/tl_web_page_instant_view_gen.go

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