Skip to content

Commit

Permalink
feat(schema): update TDLib to the latest layer
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Oct 13, 2022
1 parent 1752c42 commit 5764147
Show file tree
Hide file tree
Showing 16 changed files with 2,312 additions and 431 deletions.
83 changes: 62 additions & 21 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: a9d9051eb771e49b66a6f8777e2421395ebc51c48e7c7fce30f5111fdda20647
// SHA256: b1d92d8c0c9a68b1673fbc9bc4f1344692d5da65749f863c3d348fed466ee99b

double#2210c154 ? = Double;

Expand Down Expand Up @@ -193,10 +193,6 @@ remoteFile#2c917856 id:string unique_id:string is_uploading_active:Bool is_uploa
//@remote Information about the remote copy of the file
file#4b4c4e34 id:int32 size:int53 expected_size:int53 local:localFile remote:remoteFile = File;

//@description Represents a list of files
//@files List of files
files#c857c33d files:vector<file> = Files;

//@class InputFile @description Points to a file

//@description A file defined by its unique ID
Expand Down Expand Up @@ -412,9 +408,11 @@ voiceNote#b9f24cf5 duration:int32 waveform:bytes mime_type:string speech_recogni

//@description Describes an animated or custom representation of an emoji
//@sticker Sticker for the emoji; may be null if yet unknown for a custom emoji. If the sticker is a custom emoji, it can have arbitrary format different from stickerFormatTgs
//@sticker_width Expected width of the sticker, which can be used if the sticker is null
//@sticker_height Expected height of the sticker, which can be used if the sticker is null
//@fitzpatrick_type Emoji modifier fitzpatrick type; 0-6; 0 if none
//@sound File containing the sound to be played when the sticker is clicked; may be null. The sound is encoded with the Opus codec, and stored inside an OGG container
animatedEmoji#93b7fec9 sticker:sticker fitzpatrick_type:int32 sound:file = AnimatedEmoji;
animatedEmoji#52309ebf sticker:sticker sticker_width:int32 sticker_height:int32 fitzpatrick_type:int32 sound:file = AnimatedEmoji;

//@description Describes a user contact
//@phone_number Phone number of the user
Expand Down Expand Up @@ -847,7 +845,7 @@ basicGroupFullInfo#f191cfca photo:chatPhoto description:string creator_user_id:i
//@id Supergroup or channel identifier
//@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
//@status Status of the current user in the supergroup or channel; custom title will always be 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
//@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
Expand Down Expand Up @@ -922,6 +920,15 @@ messageSenderChat#f1b71131 chat_id:int53 = MessageSender;
//@senders List of message senders
messageSenders#f6929bcc total_count:int32 senders:vector<MessageSender> = MessageSenders;

//@description Represents a message sender, which can be used to send messages in a chat
//@sender Available message senders
//@needs_premium True, if Telegram Premium is needed to use the message sender
chatMessageSender#2d55aeba sender:MessageSender needs_premium:Bool = ChatMessageSender;

//@description Represents a list of message senders, which can be used to send messages in a chat
//@senders List of available message senders
chatMessageSenders#d80d336 senders:vector<chatMessageSender> = ChatMessageSenders;

//@class MessageForwardOrigin @description Contains information about the origin of a forwarded message

//@description The message was originally sent by a known user
Expand Down Expand Up @@ -1936,7 +1943,7 @@ paymentResult#d00fe85d success:Bool verification_url:string = PaymentResult;
//@tip_amount The amount of tip chosen by the buyer in the smallest units of the currency
paymentReceipt#e819e6c1 title:string description:formattedText photo:photo date:int32 seller_bot_user_id:int53 payment_provider_user_id:int53 invoice:invoice order_info:orderInfo shipping_option:shippingOption credentials_title:string tip_amount:int53 = PaymentReceipt;

//@class InputInvoice @description Describe an invoice to process
//@class InputInvoice @description Describes an invoice to process

//@description An invoice from a message of the type messageInvoice
//@chat_id Chat identifier of the message
Expand All @@ -1947,6 +1954,30 @@ inputInvoiceMessage#58dcea10 chat_id:int53 message_id:int53 = InputInvoice;
//@name Name of the invoice
inputInvoiceName#b1ca16f3 name:string = InputInvoice;

//@class MessageExtendedMedia @description Describes a media, which is attached to an invoice

//@description The media is hidden until the invoice is paid
//@width Media width; 0 if unknown
//@height Media height; 0 if unknown
//@duration Media duration; 0 if unknown
//@minithumbnail Media minithumbnail; may be null
//@caption Media caption
messageExtendedMediaPreview#7703a347 width:int32 height:int32 duration:int32 minithumbnail:minithumbnail caption:formattedText = MessageExtendedMedia;

//@description The media is a photo
//@photo The photo
//@caption Photo caption
messageExtendedMediaPhoto#c68b4530 photo:photo caption:formattedText = MessageExtendedMedia;

//@description The media is a video
//@video The video
//@caption Photo caption
messageExtendedMediaVideo#11acbf3b video:video caption:formattedText = MessageExtendedMedia;

//@description The media is unuspported
//@caption Media caption
messageExtendedMediaUnsupported#141f5020 caption:formattedText = MessageExtendedMedia;

//@description File with the date it was uploaded
//@file The file
//@date Point in time (Unix timestamp) when the file was uploaded
Expand Down Expand Up @@ -2380,7 +2411,8 @@ messagePoll#d888b24d poll:poll = MessageContent;
//@is_test True, if the invoice is a test invoice
//@need_shipping_address True, if the shipping address must be specified
//@receipt_message_id The identifier of the message with the receipt, after the product has been purchased
messageInvoice#d822508c title:string description:formattedText photo:photo currency:string total_amount:int53 start_parameter:string is_test:Bool need_shipping_address:Bool receipt_message_id:int53 = MessageContent;
//@extended_media Extended media attached to the invoice; may be null
messageInvoice#30c2ddd6 title:string description:formattedText photo:photo currency:string total_amount:int53 start_parameter:string is_test:Bool need_shipping_address:Bool receipt_message_id:int53 extended_media:MessageExtendedMedia = MessageContent;

//@description A message with information about an ended call
//@is_video True, if the call was a video call
Expand Down Expand Up @@ -2663,7 +2695,7 @@ inputMessageAudio#daa400b2 audio:InputFile album_cover_thumbnail:inputThumbnail
//@description A document message (general file)
//@document Document to be sent
//@thumbnail Document thumbnail; pass null to skip thumbnail uploading
//@disable_content_type_detection If true, automatic file type detection will be disabled and the document will be always sent as file. Always true for files sent to secret chats
//@disable_content_type_detection If true, automatic file type detection will be disabled and the document will always be sent as file. Always true for files sent to secret chats
//@caption Document caption; pass null to use an empty caption; 0-GetOption("message_caption_length_max") characters
inputMessageDocument#615b72b9 document:InputFile thumbnail:inputThumbnail disable_content_type_detection:Bool caption:formattedText = InputMessageContent;

Expand Down Expand Up @@ -2748,7 +2780,8 @@ inputMessageGame#4aae6ae2 bot_user_id:int53 game_short_name:string = InputMessag
//@provider_token Payment provider token
//@provider_data JSON-encoded data about the invoice, which will be shared with the payment provider
//@start_parameter Unique invoice bot deep link parameter for the generation of this invoice. If empty, it would be possible to pay directly from forwards of the invoice message
inputMessageInvoice#3deb040f invoice:invoice title:string description:string photo_url:string photo_size:int32 photo_width:int32 photo_height:int32 payload:bytes provider_token:string provider_data:string start_parameter:string = InputMessageContent;
//@extended_media_content The content of extended media attached to the invoice. The content of the message to be sent. Must be one of the following types: inputMessagePhoto, inputMessageVideo
inputMessageInvoice#34cd1d60 invoice:invoice title:string description:string photo_url:string photo_size:int32 photo_width:int32 photo_height:int32 payload:bytes provider_token:string provider_data:string start_parameter:string extended_media_content:InputMessageContent = InputMessageContent;

//@description A message with a poll. Polls can't be sent to secret chats. Polls can be sent only to a private chat with a bot
//@question Poll question; 1-255 characters (up to 300 characters for bots)
Expand Down Expand Up @@ -3951,7 +3984,7 @@ backgroundFillSolid#3c3dbc1d color:int32 = BackgroundFill;
//@description Describes a gradient fill of a background
//@top_color A top color of the background in the RGB24 format
//@bottom_color A bottom color of the background in the RGB24 format
//@rotation_angle Clockwise rotation angle of the gradient, in degrees; 0-359. Must be always divisible by 45
//@rotation_angle Clockwise rotation angle of the gradient, in degrees; 0-359. Must always be divisible by 45
backgroundFillGradient#925ff17f top_color:int32 bottom_color:int32 rotation_angle:int32 = BackgroundFill;

//@description Describes a freeform gradient fill of a background
Expand Down Expand Up @@ -4604,7 +4637,8 @@ internalLinkTypeGame#f074adcd bot_username:string game_short_name:string = Inter

//@description The link must be opened in an Instant View. Call getWebPageInstantView with the given URL to process the link
//@url URL to be passed to getWebPageInstantView
internalLinkTypeInstantView#3cc171c4 url:string = InternalLinkType;
//@fallback_url An URL to open if getWebPageInstantView fails
internalLinkTypeInstantView#69e4df3f url:string fallback_url:string = InternalLinkType;

//@description The link is a link to an invoice. Call getPaymentForm with the given invoice name to process the link
//@invoice_name Name of the invoice
Expand Down Expand Up @@ -6189,6 +6223,13 @@ getChatMessageCalendar#ec8f2114 chat_id:int53 filter:SearchMessagesFilter from_m
//@return_local Pass true to get the number of messages without sending network requests, or -1 if the number of messages is unknown locally
getChatMessageCount#c3eb1ac chat_id:int53 filter:SearchMessagesFilter return_local:Bool = Count;

//@description Returns approximate 1-based position of a message among messages, which can be found by the specified filter in the chat. Cannot be used in secret chats
//@chat_id Identifier of the chat in which to find message position
//@message_id Message identifier
//@filter Filter for message content; searchMessagesFilterEmpty, searchMessagesFilterUnreadMention, searchMessagesFilterUnreadReaction, and searchMessagesFilterFailedToSend are unsupported in this function
//@message_thread_id If not 0, only messages in the specified thread will be considered; supergroups only
getChatMessagePosition#dea71718 chat_id:int53 message_id:int53 filter:SearchMessagesFilter message_thread_id:int53 = Count;

//@description Returns all scheduled messages in a chat. The messages are returned in a reverse chronological order (i.e., in order of decreasing message_id)
//@chat_id Chat identifier
getChatScheduledMessages#df3d2ffb chat_id:int53 = Messages;
Expand Down Expand Up @@ -6251,7 +6292,7 @@ rateSpeechRecognition#eedcc3b5 chat_id:int53 message_id:int53 is_good:Bool = Ok;

//@description Returns list of message sender identifiers, which can be used to send messages in a chat
//@chat_id Chat identifier
getChatAvailableMessageSenders#a41d7c58 chat_id:int53 = MessageSenders;
getChatAvailableMessageSenders#450fe92b chat_id:int53 = ChatMessageSenders;

//@description Selects a message sender to send messages in a chat
//@chat_id Chat identifier
Expand Down Expand Up @@ -6414,8 +6455,8 @@ editMessageSchedulingState#ae2a0bc0 chat_id:int53 message_id:int53 scheduling_st
//@emoji Text representation of the reaction
getEmojiReaction#e53411dc emoji:string = EmojiReaction;

//@description Returns TGS files with generic animations for custom emoji reactions
getCustomEmojiReactionAnimations#9d30601f = Files;
//@description Returns TGS stickers with generic animations for custom emoji reactions
getCustomEmojiReactionAnimations#49748dd2 = Stickers;

//@description Returns reactions, which can be added to a message. The list can change after updateActiveEmojiReactions, updateChatAvailableReactions for the chat, or updateMessageInteractionInfo for the message
//@chat_id Identifier of the chat to which the message belongs
Expand Down Expand Up @@ -7452,12 +7493,12 @@ sharePhoneNumber#4164e055 user_id:int53 = Ok;
//@limit The maximum number of photos to be returned; up to 100
getUserProfilePhotos#c9defe42 user_id:int53 offset:int32 limit:int32 = ChatPhotos;

//@description Returns stickers from the installed sticker sets that correspond to a given emoji. If the emoji is non-empty, then favorite, recently used or trending stickers may also be returned
//@sticker_type Type of the sticker sets to return
//@emoji String representation of emoji. If empty, returns all known installed stickers
//@description Returns stickers from the installed sticker sets that correspond to a given emoji or can be found by sticker-specific keywords. If the query is non-empty, then favorite, recently used or trending stickers may also be returned
//@sticker_type Type of the stickers to return
//@query Search query; an emoji or a keyword prefix. If empty, returns all known installed stickers
//@limit The maximum number of stickers to be returned
//@chat_id Chat identifier for which to return stickers. Available custom emoji may be different for different chats
getStickers#19afca52 sticker_type:StickerType emoji:string limit:int32 chat_id:int53 = Stickers;
//@chat_id Chat identifier for which to return stickers. Available custom emoji stickers may be different for different chats
getStickers#45069343 sticker_type:StickerType query:string limit:int32 chat_id:int53 = Stickers;

//@description Searches for stickers from public sticker sets that correspond to a given emoji
//@emoji String representation of emoji; must be non-empty
Expand Down
Loading

0 comments on commit 5764147

Please sign in to comment.