Add quickReplyShortcut.id.
This commit is contained in:
parent
b84c36626a
commit
bdb3088a0c
@ -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;
|
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
|
//@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
|
//@name The name of the shortcut that can be used to use the shortcut
|
||||||
//@first_message The first shortcut message
|
//@first_message The first shortcut message
|
||||||
//@message_count The total number of messages in the shortcut
|
//@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
|
//@class PublicForward @description Describes a public forward or repost of a story
|
||||||
|
@ -528,8 +528,9 @@ td_api::object_ptr<td_api::quickReplyShortcut> QuickReplyManager::get_quick_repl
|
|||||||
const Shortcut *s, const char *source) const {
|
const Shortcut *s, const char *source) const {
|
||||||
CHECK(s != nullptr);
|
CHECK(s != nullptr);
|
||||||
CHECK(!s->messages_.empty());
|
CHECK(!s->messages_.empty());
|
||||||
return td_api::make_object<td_api::quickReplyShortcut>(
|
return td_api::make_object<td_api::quickReplyShortcut>(s->shortcut_id_.get(), s->name_,
|
||||||
s->name_, get_quick_reply_message_object(s->messages_[0].get(), source), get_shortcut_message_count(s));
|
get_quick_reply_message_object(s->messages_[0].get(), source),
|
||||||
|
get_shortcut_message_count(s));
|
||||||
}
|
}
|
||||||
|
|
||||||
void QuickReplyManager::get_quick_reply_shortcuts(Promise<Unit> &&promise) {
|
void QuickReplyManager::get_quick_reply_shortcuts(Promise<Unit> &&promise) {
|
||||||
|
Loading…
Reference in New Issue
Block a user