From de0c27febeffe45a2880a77a133ab0d14f596518 Mon Sep 17 00:00:00 2001 From: GitHub Date: Tue, 5 Dec 2023 07:44:24 +0000 Subject: [PATCH] feat(schema): update TDLib to the latest layer --- _schema/tdapi.tl | 10 +++++----- tdapi/tl_input_message_content_gen.go | 4 ++-- tdapi/tl_profile_accent_color_gen.go | 6 ++---- tdapi/tl_text_quote_gen.go | 3 ++- 4 files changed, 11 insertions(+), 12 deletions(-) diff --git a/_schema/tdapi.tl b/_schema/tdapi.tl index 9018586f52..eca8c43b3c 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: ddea96ee6e96ca4d09562f72e5591dab97acae15ff1433aedc3cdc7d9aa5dd9d +// SHA256: b3ce893c8a814da41748b8399a852630cf9456ee18a16d806a6674cf4e3584b2 double#2210c154 ? = Double; @@ -767,8 +767,8 @@ profileAccentColors#218e9367 palette_colors:vector background_colors:vect //@description Contains information about supported accent color for user profile photo background //@id Profile accent color identifier -//@light_theme_colors The list of 1-3 colors in RGB format, describing the accent color, as expected to be shown in light themes -//@dark_theme_colors The list of 1-3 colors in RGB format, describing the accent color, as expected to be shown in dark themes +//@light_theme_colors Description of accent colors expected to be used in light themes +//@dark_theme_colors Description of accent colors expected to be used in dark themes profileAccentColor#2bea798e id:int32 light_theme_colors:profileAccentColors dark_theme_colors:profileAccentColors = ProfileAccentColor; //@description Describes a custom emoji to be shown instead of the Telegram Premium badge @@ -1262,7 +1262,7 @@ messageSendingStateFailed#ac81ee5e error:error can_retry:Bool need_another_sende //@description Describes manually or automatically chosen quote from another message //@text Text of the quote. Only Bold, Italic, Underline, Strikethrough, Spoiler, and CustomEmoji entities can be present in the text -//@position Approximate quote position in the original message in UTF-16 code units +//@position Approximate quote position in the original message in UTF-16 code units as specified by the message sender //@is_manual True, if the quote was manually chosen by the message sender textQuote#8675b8b2 text:formattedText position:int32 is_manual:Bool = TextQuote; @@ -3299,7 +3299,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 True, if automatic file type detection is disabled and the document must be sent as a file. Always true for files sent to secret chats +//@disable_content_type_detection Pass true to disable automatic file type detection and send the document as a 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; diff --git a/tdapi/tl_input_message_content_gen.go b/tdapi/tl_input_message_content_gen.go index b0b6ea158c..4067b1e96f 100644 --- a/tdapi/tl_input_message_content_gen.go +++ b/tdapi/tl_input_message_content_gen.go @@ -1061,8 +1061,8 @@ type InputMessageDocument struct { Document InputFileClass // Document thumbnail; pass null to skip thumbnail uploading Thumbnail InputThumbnail - // True, if automatic file type detection is disabled and the document must be sent as a - // file. Always true for files sent to secret chats + // Pass true to disable automatic file type detection and send the document as a file. + // Always true for files sent to secret chats DisableContentTypeDetection bool // Document caption; pass null to use an empty caption; // 0-getOption("message_caption_length_max") characters diff --git a/tdapi/tl_profile_accent_color_gen.go b/tdapi/tl_profile_accent_color_gen.go index ade82e9aa2..3d70f6cd77 100644 --- a/tdapi/tl_profile_accent_color_gen.go +++ b/tdapi/tl_profile_accent_color_gen.go @@ -35,11 +35,9 @@ var ( type ProfileAccentColor struct { // Profile accent color identifier ID int32 - // The list of 1-3 colors in RGB format, describing the accent color, as expected to be - // shown in light themes + // Description of accent colors expected to be used in light themes LightThemeColors ProfileAccentColors - // The list of 1-3 colors in RGB format, describing the accent color, as expected to be - // shown in dark themes + // Description of accent colors expected to be used in dark themes DarkThemeColors ProfileAccentColors } diff --git a/tdapi/tl_text_quote_gen.go b/tdapi/tl_text_quote_gen.go index 43bd73942c..6f7afc9ec3 100644 --- a/tdapi/tl_text_quote_gen.go +++ b/tdapi/tl_text_quote_gen.go @@ -36,7 +36,8 @@ type TextQuote struct { // Text of the quote. Only Bold, Italic, Underline, Strikethrough, Spoiler, and // CustomEmoji entities can be present in the text Text FormattedText - // Approximate quote position in the original message in UTF-16 code units + // Approximate quote position in the original message in UTF-16 code units as specified + // by the message sender Position int32 // True, if the quote was manually chosen by the message sender IsManual bool