diff --git a/td/generate/scheme/td_api.tl b/td/generate/scheme/td_api.tl index 8527a2419..6dd00d8a6 100644 --- a/td/generate/scheme/td_api.tl +++ b/td/generate/scheme/td_api.tl @@ -2536,10 +2536,10 @@ messageGame game:game = MessageContent; messagePoll poll:poll = MessageContent; //@description A message with a forwarded story -//@sender_user_id Identifier of the user that created the story +//@story_sender_user_id Identifier of the user that created the story //@story_id Story identifier //@via_mention True, if the story was forwarded because of a mention of the user -messageStory sender_user_id:int53 story_id:int32 via_mention:Bool = MessageContent; +messageStory story_sender_user_id:int53 story_id:int32 via_mention:Bool = MessageContent; //@description A message with an invoice from a bot. Use getInternalLink with internalLinkTypeBotStart to share the invoice //@title Product title @@ -2928,9 +2928,9 @@ inputMessageInvoice invoice:invoice title:string description:string photo_url:st inputMessagePoll question:string options:vector is_anonymous:Bool type:PollType open_period:int32 close_date:int32 is_closed:Bool = InputMessageContent; //@description A message with a forwarded story. Stories can't be sent to secret chats. A story can be forwarded only if its privacy rules contains exactly one rule userPrivacySettingRuleAllowAll -//@sender_user_id Identifier of the user that created the story +//@story_sender_user_id Identifier of the user that created the story //@story_id Story identifier -inputMessageStory sender_user_id:int53 story_id:int32 = InputMessageContent; +inputMessageStory story_sender_user_id:int53 story_id:int32 = InputMessageContent; //@description A forwarded message //@from_chat_id Identifier for the chat this forwarded message came from @@ -5690,8 +5690,8 @@ updateUnreadChatCount chat_list:ChatList total_count:int32 unread_count:int32 un //@description A story was changed @story The new information about the story updateStory story:story = Update; -//@description A story became inaccessible @sender_user_id Identifier of the user that created the story @story_id Story identifier -updateStoryDeleted sender_user_id:int53 story_id:int32 = Update; +//@description A story became inaccessible @story_sender_user_id Identifier of the user that created the story @story_id Story identifier +updateStoryDeleted story_sender_user_id:int53 story_id:int32 = Update; //@description An option changed its value @name The option name @value The new option value updateOption name:string value:OptionValue = Update; diff --git a/td/telegram/MessageContent.cpp b/td/telegram/MessageContent.cpp index f4eb68c72..9aa6c52e6 100644 --- a/td/telegram/MessageContent.cpp +++ b/td/telegram/MessageContent.cpp @@ -2284,7 +2284,7 @@ static Result create_input_message_content( } case td_api::inputMessageStory::ID: { auto input_story = static_cast(input_message_content.get()); - UserId user_id(input_story->sender_user_id_); + UserId user_id(input_story->story_sender_user_id_); StoryId story_id(input_story->story_id_); StoryFullId story_full_id(DialogId(user_id), story_id); if (!td->story_manager_->have_story(story_full_id)) { diff --git a/td/telegram/cli.cpp b/td/telegram/cli.cpp index 93d5843e7..36525bc48 100644 --- a/td/telegram/cli.cpp +++ b/td/telegram/cli.cpp @@ -4691,10 +4691,10 @@ class CliClient final : public Actor { td_api::make_object(as_input_file_id(file_id), nullptr, 0, 0, emoji)); } else if (op == "sstory") { ChatId chat_id; - UserId user_id; + UserId story_sender_user_id; StoryId story_id; - get_args(args, chat_id, user_id, story_id); - send_message(chat_id, td_api::make_object(user_id, story_id)); + get_args(args, chat_id, story_sender_user_id, story_id); + send_message(chat_id, td_api::make_object(story_sender_user_id, story_id)); } else if (op == "sv") { ChatId chat_id; string video_path;