From ae18e3de6bc83398c078b28e8b08588a0b94204f Mon Sep 17 00:00:00 2001 From: levlam Date: Tue, 23 Jan 2024 21:28:39 +0300 Subject: [PATCH] Add availableReaction.is_tag. --- td/generate/scheme/td_api.tl | 3 ++- td/telegram/ReactionManager.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/td/generate/scheme/td_api.tl b/td/generate/scheme/td_api.tl index 7d6892c58..fc017ddf4 100644 --- a/td/generate/scheme/td_api.tl +++ b/td/generate/scheme/td_api.tl @@ -4024,7 +4024,8 @@ availableReaction type:ReactionType needs_premium:Bool = AvailableReaction; //@recent_reactions List of recently used reactions //@popular_reactions List of popular reactions //@allow_custom_emoji True, if any custom emoji reaction can be added by Telegram Premium subscribers -availableReactions top_reactions:vector recent_reactions:vector popular_reactions:vector allow_custom_emoji:Bool = AvailableReactions; +//@are_tags True, if the reactions will be tags and the message can be found by them +availableReactions top_reactions:vector recent_reactions:vector popular_reactions:vector allow_custom_emoji:Bool are_tags:Bool = AvailableReactions; //@description Contains information about an emoji reaction //@emoji Text representation of the reaction diff --git a/td/telegram/ReactionManager.cpp b/td/telegram/ReactionManager.cpp index 1f934c277..8fa7145c0 100644 --- a/td/telegram/ReactionManager.cpp +++ b/td/telegram/ReactionManager.cpp @@ -424,7 +424,7 @@ td_api::object_ptr ReactionManager::get_sorted_avail return td_api::make_object( std::move(top_reaction_objects), std::move(recent_reaction_objects), std::move(popular_reaction_objects), - available_reactions.allow_all_custom_); + available_reactions.allow_all_custom_, is_tag); } td_api::object_ptr ReactionManager::get_available_reactions(int32 row_size) {