From eb2c0c9315dad89f67dacb752ff1001d9e464c55 Mon Sep 17 00:00:00 2001 From: levlam Date: Thu, 4 Nov 2021 11:41:07 +0300 Subject: [PATCH] Check for is_bot just in case. --- td/telegram/StickersManager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/td/telegram/StickersManager.cpp b/td/telegram/StickersManager.cpp index ee1e44856..33a139133 100644 --- a/td/telegram/StickersManager.cpp +++ b/td/telegram/StickersManager.cpp @@ -4314,7 +4314,7 @@ void StickersManager::get_animated_emoji(string emoji, bool is_recursive, void StickersManager::get_animated_emoji_click_sticker(const string &message_text, FullMessageId full_message_id, Promise> &&promise) { - if (disable_animated_emojis_) { + if (disable_animated_emojis_ || td_->auth_manager_->is_bot()) { return promise.set_value(nullptr); } @@ -4379,7 +4379,7 @@ void StickersManager::choose_animated_emoji_click_sticker(const StickerSet *stic return promise.set_error(Status::Error(400, "Message is not an animated emoji message")); } - if (disable_animated_emojis_) { + if (disable_animated_emojis_ || td_->auth_manager_->is_bot()) { return promise.set_value(nullptr); } @@ -4657,7 +4657,7 @@ void StickersManager::schedule_update_animated_emoji_clicked(const StickerSet *s } void StickersManager::send_update_animated_emoji_clicked(FullMessageId full_message_id, FileId sticker_id) { - if (G()->close_flag() || disable_animated_emojis_) { + if (G()->close_flag() || disable_animated_emojis_ || td_->auth_manager_->is_bot()) { return; } if (td_->messages_manager_->is_message_edited_recently(full_message_id, 2)) {