Add quickReplyShortcut.id.

This commit is contained in:
levlam 2024-02-26 18:18:53 +03:00
parent b84c36626a
commit bdb3088a0c
2 changed files with 5 additions and 3 deletions

View File

@ -3747,10 +3747,11 @@ storyInteractions total_count:int32 total_forward_count:int32 total_reaction_cou
quickReplyMessage id:int53 sending_state:MessageSendingState can_be_edited:Bool forward_info:messageForwardInfo reply_to_message_id:int53 via_bot_user_id:int53 media_album_id:int64 content:MessageContent = QuickReplyMessage;
//@description Describes a shortcut that can be used for a quick reply
//@id Unique shortcut identifier
//@name The name of the shortcut that can be used to use the shortcut
//@first_message The first shortcut message
//@message_count The total number of messages in the shortcut
quickReplyShortcut name:string first_message:quickReplyMessage message_count:int32 = QuickReplyShortcut;
quickReplyShortcut id:int32 name:string first_message:quickReplyMessage message_count:int32 = QuickReplyShortcut;
//@class PublicForward @description Describes a public forward or repost of a story

View File

@ -528,8 +528,9 @@ td_api::object_ptr<td_api::quickReplyShortcut> QuickReplyManager::get_quick_repl
const Shortcut *s, const char *source) const {
CHECK(s != nullptr);
CHECK(!s->messages_.empty());
return td_api::make_object<td_api::quickReplyShortcut>(
s->name_, get_quick_reply_message_object(s->messages_[0].get(), source), get_shortcut_message_count(s));
return td_api::make_object<td_api::quickReplyShortcut>(s->shortcut_id_.get(), s->name_,
get_quick_reply_message_object(s->messages_[0].get(), source),
get_shortcut_message_count(s));
}
void QuickReplyManager::get_quick_reply_shortcuts(Promise<Unit> &&promise) {