From 39f52bb186708caecdb47adf8243e59a103b3538 Mon Sep 17 00:00:00 2001 From: GitHub Date: Wed, 24 Jul 2024 07:45:09 +0000 Subject: [PATCH] feat(schema): update TDLib to the latest layer --- _schema/tdapi.tl | 8 ++++---- tdapi/tl_can_send_story_gen.go | 3 ++- tdapi/tl_send_story_gen.go | 6 ++++-- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/_schema/tdapi.tl b/_schema/tdapi.tl index 6bc4fb97ed..3d2abfaac3 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: 4ef2eba444b6c03a1d52c67e8f657b1453e3f4d925aa0cbde99e5e924d5e70d7 +// SHA256: b3e6365f3400fafbd5288b7ea0a3111162eb452a7bb2efa13b78d986adb93c03 double#2210c154 ? = Double; @@ -10205,17 +10205,17 @@ getStory#717b1c78 story_sender_chat_id:int53 story_id:int32 only_local:Bool = St getChatsToSendStories#22f9e3a4 = Chats; //@description Checks whether the current user can send a story on behalf of a chat; requires can_post_stories right for supergroup and channel chats -//@chat_id Chat identifier +//@chat_id Chat identifier. Pass Saved Messages chat identifier when posting a story on behalf of the current user canSendStory#b6e0216b chat_id:int53 = CanSendStoryResult; //@description Sends a new story to a chat; requires can_post_stories right for supergroup and channel chats. Returns a temporary story -//@chat_id Identifier of the chat that will post the story +//@chat_id Identifier of the chat that will post the story. Pass Saved Messages chat identifier when posting a story on behalf of the current user //@content Content of the story //@areas Clickable rectangle areas to be shown on the story media; pass null if none //@caption Story caption; pass null to use an empty caption; 0-getOption("story_caption_length_max") characters; can have entities only if getOption("can_use_text_entities_in_story_caption") //@privacy_settings The privacy settings for the story; ignored for stories sent to supergroup and channel chats //@active_period Period after which the story is moved to archive, in seconds; must be one of 6 * 3600, 12 * 3600, 86400, or 2 * 86400 for Telegram Premium users, and 86400 otherwise -//@from_story_full_id Full identifier of the original story, which content was used to create the story +//@from_story_full_id Full identifier of the original story, which content was used to create the story; pass null if the story isn't repost of another story //@is_posted_to_chat_page Pass true to keep the story accessible after expiration //@protect_content Pass true if the content of the story must be protected from forwarding and screenshotting sendStory#e6ab3302 chat_id:int53 content:InputStoryContent areas:inputStoryAreas caption:formattedText privacy_settings:StoryPrivacySettings active_period:int32 from_story_full_id:storyFullId is_posted_to_chat_page:Bool protect_content:Bool = Story; diff --git a/tdapi/tl_can_send_story_gen.go b/tdapi/tl_can_send_story_gen.go index 1c99f624c7..8b779beee4 100644 --- a/tdapi/tl_can_send_story_gen.go +++ b/tdapi/tl_can_send_story_gen.go @@ -33,7 +33,8 @@ var ( // CanSendStoryRequest represents TL type `canSendStory#b6e0216b`. type CanSendStoryRequest struct { - // Chat identifier + // Chat identifier. Pass Saved Messages chat identifier when posting a story on behalf of + // the current user ChatID int64 } diff --git a/tdapi/tl_send_story_gen.go b/tdapi/tl_send_story_gen.go index e4e93de80d..e40f65af35 100644 --- a/tdapi/tl_send_story_gen.go +++ b/tdapi/tl_send_story_gen.go @@ -33,7 +33,8 @@ var ( // SendStoryRequest represents TL type `sendStory#e6ab3302`. type SendStoryRequest struct { - // Identifier of the chat that will post the story + // Identifier of the chat that will post the story. Pass Saved Messages chat identifier + // when posting a story on behalf of the current user ChatID int64 // Content of the story Content InputStoryContentClass @@ -49,7 +50,8 @@ type SendStoryRequest struct { // Period after which the story is moved to archive, in seconds; must be one of 6 * 3600, // 12 * 3600, 86400, or 2 * 86400 for Telegram Premium users, and 86400 otherwise ActivePeriod int32 - // Full identifier of the original story, which content was used to create the story + // Full identifier of the original story, which content was used to create the story; + // pass null if the story isn't repost of another story FromStoryFullID StoryFullID // Pass true to keep the story accessible after expiration IsPostedToChatPage bool