Skip to content

Commit

Permalink
Disable custom animated emoji for bots.
Browse files Browse the repository at this point in the history
  • Loading branch information
levlam committed Aug 22, 2022
1 parent 28594d3 commit 96fc91e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion td/telegram/StickersManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2424,7 +2424,7 @@ FileId StickersManager::get_custom_animated_emoji_sticker_id(int64 custom_emoji_

td_api::object_ptr<td_api::animatedEmoji> StickersManager::get_animated_emoji_object(const string &emoji,
int64 custom_emoji_id) {
if (disable_animated_emojis_) {
if (td_->auth_manager_->is_bot() || disable_animated_emojis_) {
return nullptr;
}

Expand Down

0 comments on commit 96fc91e

Please sign in to comment.