Improve field names.

This commit is contained in:
levlam 2023-06-15 13:44:09 +03:00
parent 966eee8a07
commit 59477f8f98
3 changed files with 10 additions and 10 deletions

View File

@ -2536,10 +2536,10 @@ messageGame game:game = MessageContent;
messagePoll poll:poll = MessageContent; messagePoll poll:poll = MessageContent;
//@description A message with a forwarded story //@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 //@story_id Story identifier
//@via_mention True, if the story was forwarded because of a mention of the user //@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 //@description A message with an invoice from a bot. Use getInternalLink with internalLinkTypeBotStart to share the invoice
//@title Product title //@title Product title
@ -2928,9 +2928,9 @@ inputMessageInvoice invoice:invoice title:string description:string photo_url:st
inputMessagePoll question:string options:vector<string> is_anonymous:Bool type:PollType open_period:int32 close_date:int32 is_closed:Bool = InputMessageContent; inputMessagePoll question:string options:vector<string> 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 //@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 //@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 //@description A forwarded message
//@from_chat_id Identifier for the chat this forwarded message came from //@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 //@description A story was changed @story The new information about the story
updateStory story:story = Update; updateStory story:story = Update;
//@description A story became inaccessible @sender_user_id Identifier of the user that created the story @story_id Story identifier //@description A story became inaccessible @story_sender_user_id Identifier of the user that created the story @story_id Story identifier
updateStoryDeleted sender_user_id:int53 story_id:int32 = Update; 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 //@description An option changed its value @name The option name @value The new option value
updateOption name:string value:OptionValue = Update; updateOption name:string value:OptionValue = Update;

View File

@ -2284,7 +2284,7 @@ static Result<InputMessageContent> create_input_message_content(
} }
case td_api::inputMessageStory::ID: { case td_api::inputMessageStory::ID: {
auto input_story = static_cast<td_api::inputMessageStory *>(input_message_content.get()); auto input_story = static_cast<td_api::inputMessageStory *>(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_); StoryId story_id(input_story->story_id_);
StoryFullId story_full_id(DialogId(user_id), story_id); StoryFullId story_full_id(DialogId(user_id), story_id);
if (!td->story_manager_->have_story(story_full_id)) { if (!td->story_manager_->have_story(story_full_id)) {

View File

@ -4691,10 +4691,10 @@ class CliClient final : public Actor {
td_api::make_object<td_api::inputMessageSticker>(as_input_file_id(file_id), nullptr, 0, 0, emoji)); td_api::make_object<td_api::inputMessageSticker>(as_input_file_id(file_id), nullptr, 0, 0, emoji));
} else if (op == "sstory") { } else if (op == "sstory") {
ChatId chat_id; ChatId chat_id;
UserId user_id; UserId story_sender_user_id;
StoryId story_id; StoryId story_id;
get_args(args, chat_id, user_id, story_id); get_args(args, chat_id, story_sender_user_id, story_id);
send_message(chat_id, td_api::make_object<td_api::inputMessageStory>(user_id, story_id)); send_message(chat_id, td_api::make_object<td_api::inputMessageStory>(story_sender_user_id, story_id));
} else if (op == "sv") { } else if (op == "sv") {
ChatId chat_id; ChatId chat_id;
string video_path; string video_path;