From 505263a3073bc4b947c3dd21ec7dad97c221cb50 Mon Sep 17 00:00:00 2001 From: GitHub Date: Thu, 23 Nov 2023 07:44:46 +0000 Subject: [PATCH] feat(schema): update TDLib to the latest layer --- _schema/tdapi.tl | 8 ++++---- tdapi/tl_speech_recognition_result_gen.go | 3 ++- tdapi/tl_web_page_gen.go | 3 ++- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/_schema/tdapi.tl b/_schema/tdapi.tl index 17ae097697..88274ba18e 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: 6b8f03c114a99f63b1c56b8c74d8b90d8bf37cc2f47b16a2cbe2461038450903 +// SHA256: bd8aa4da2ec994c4f642cd53c169ddd8fa28533d1617148f072788b5b9e6ba2e double#2210c154 ? = Double; @@ -2220,7 +2220,7 @@ webPageInstantView#2c0ec99c page_blocks:vector view_count:int32 versi //@duration Duration of the content, in seconds //@author Author of the content //@has_large_media True, if size of media in the preview can be changed -//@show_large_media True, if large media preview must be shown +//@show_large_media True, if large media preview must be shown; otherwise, the media preview must be shown small and only the first frame must be shown for videos //@skip_confirmation True, if there is no need to show an ordinary open URL confirmation, when opening the URL from the preview, because the URL is shown in the message text in clear //@show_above_text True, if the link preview must be shown above message text; otherwise, the link preview must be shown below the message text //@animation Preview of the content as an animation, if available; may be null @@ -4114,7 +4114,7 @@ speechRecognitionResultPending#9ebc8e00 partial_text:string = SpeechRecognitionR speechRecognitionResultText#80e681dd text:string = SpeechRecognitionResult; //@description The speech recognition failed -//@error Recognition error +//@error Recognition error. An error with a message "MSG_VOICE_TOO_LONG" is returned when media duration is too big to be recognized speechRecognitionResultError#9d243fc error:error = SpeechRecognitionResult; //@description Describes a color to highlight a bot added to attachment menu @@ -7598,7 +7598,7 @@ translateText#252264f2 text:formattedText to_language_code:string = FormattedTex //@to_language_code Language code of the language to which the message is translated. Must be one of translateMessageText#53c51ed2 chat_id:int53 message_id:int53 to_language_code:string = FormattedText; -//@description Recognizes speech in a video note or a voice note message. The message must be successfully sent and must not be scheduled. May return an error with a message "MSG_VOICE_TOO_LONG" if media duration is too big to be recognized +//@description Recognizes speech in a video note or a voice note message. The message must be successfully sent and must not be scheduled //@chat_id Identifier of the chat to which the message belongs //@message_id Identifier of the message recognizeSpeech#67d402b9 chat_id:int53 message_id:int53 = Ok; diff --git a/tdapi/tl_speech_recognition_result_gen.go b/tdapi/tl_speech_recognition_result_gen.go index 4193a067ae..5d7a7e93e8 100644 --- a/tdapi/tl_speech_recognition_result_gen.go +++ b/tdapi/tl_speech_recognition_result_gen.go @@ -365,7 +365,8 @@ func (s *SpeechRecognitionResultText) GetText() (value string) { // SpeechRecognitionResultError represents TL type `speechRecognitionResultError#9d243fc`. type SpeechRecognitionResultError struct { - // Recognition error + // Recognition error. An error with a message "MSG_VOICE_TOO_LONG" is returned when media + // duration is too big to be recognized Error Error } diff --git a/tdapi/tl_web_page_gen.go b/tdapi/tl_web_page_gen.go index c03f9d7c25..8a831560e6 100644 --- a/tdapi/tl_web_page_gen.go +++ b/tdapi/tl_web_page_gen.go @@ -62,7 +62,8 @@ type WebPage struct { Author string // True, if size of media in the preview can be changed HasLargeMedia bool - // True, if large media preview must be shown + // True, if large media preview must be shown; otherwise, the media preview must be shown + // small and only the first frame must be shown for videos ShowLargeMedia bool // True, if there is no need to show an ordinary open URL confirmation, when opening the // URL from the preview, because the URL is shown in the message text in clear