From 9260822b6e090ccbdf29ad1b745e1630539e1ecc Mon Sep 17 00:00:00 2001 From: levlam Date: Wed, 8 Mar 2023 21:12:45 +0300 Subject: [PATCH] Add reaction date to addedReaction. --- td/generate/scheme/td_api.tl | 4 ++-- td/telegram/MessageReaction.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/td/generate/scheme/td_api.tl b/td/generate/scheme/td_api.tl index 5b092b62e275..fd1946ba4f90 100644 --- a/td/generate/scheme/td_api.tl +++ b/td/generate/scheme/td_api.tl @@ -3248,8 +3248,8 @@ firebaseAuthenticationSettingsIos device_token:string is_app_sandbox:Bool = Fire phoneNumberAuthenticationSettings allow_flash_call:Bool allow_missed_call:Bool is_current_phone_number:Bool allow_sms_retriever_api:Bool firebase_authentication_settings:FirebaseAuthenticationSettings authentication_tokens:vector = PhoneNumberAuthenticationSettings; -//@description Represents a reaction applied to a message @type Type of the reaction @sender_id Identifier of the chat member, applied the reaction -addedReaction type:ReactionType sender_id:MessageSender = AddedReaction; +//@description Represents a reaction applied to a message @type Type of the reaction @sender_id Identifier of the chat member, applied the reaction @date Point in time (Unix timestamp) when the reaction was added +addedReaction type:ReactionType sender_id:MessageSender date:int32 = AddedReaction; //@description Represents a list of reactions added to a message @total_count The total number of found reactions @reactions The list of added reactions @next_offset The offset for the next request. If empty, there are no more results addedReactions total_count:int32 reactions:vector next_offset:string = AddedReactions; diff --git a/td/telegram/MessageReaction.cpp b/td/telegram/MessageReaction.cpp index 62ce7499a80f..e6e1afe2951d 100644 --- a/td/telegram/MessageReaction.cpp +++ b/td/telegram/MessageReaction.cpp @@ -304,7 +304,7 @@ class GetMessageReactionsListQuery final : public Td::ResultHandler { auto message_sender = get_min_message_sender_object(td_, dialog_id, "GetMessageReactionsListQuery"); if (message_sender != nullptr) { reactions.push_back(td_api::make_object(get_reaction_type_object(reaction_str), - std::move(message_sender))); + std::move(message_sender), reaction->date_)); } }