diff --git a/td/telegram/MessagesManager.cpp b/td/telegram/MessagesManager.cpp index 3df8edcaa..7e6bcd46c 100644 --- a/td/telegram/MessagesManager.cpp +++ b/td/telegram/MessagesManager.cpp @@ -23815,7 +23815,7 @@ void MessagesManager::set_message_reaction(FullMessageId full_message_id, string return promise.set_error(Status::Error(400, "Message not found")); } - if (!td::contains(get_message_available_reactions(d, m), reaction)) { + if (!reaction.empty() && !td::contains(get_message_available_reactions(d, m), reaction)) { return promise.set_error(Status::Error(400, "The reaction isn't available for the message")); }