Add availableReaction.is_tag.

This commit is contained in:
levlam 2024-01-23 21:28:39 +03:00
parent 956c35d6e0
commit ae18e3de6b
2 changed files with 3 additions and 2 deletions

View File

@ -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<availableReaction> recent_reactions:vector<availableReaction> popular_reactions:vector<availableReaction> 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<availableReaction> recent_reactions:vector<availableReaction> popular_reactions:vector<availableReaction> allow_custom_emoji:Bool are_tags:Bool = AvailableReactions;
//@description Contains information about an emoji reaction
//@emoji Text representation of the reaction

View File

@ -424,7 +424,7 @@ td_api::object_ptr<td_api::availableReactions> ReactionManager::get_sorted_avail
return td_api::make_object<td_api::availableReactions>(
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<td_api::availableReactions> ReactionManager::get_available_reactions(int32 row_size) {