From 07c1d53a6d3cb1fad58d2822e55eef6d57363581 Mon Sep 17 00:00:00 2001 From: levlam Date: Wed, 22 Nov 2023 14:38:22 +0300 Subject: [PATCH] Fix can_send_message_content for stickers. --- td/telegram/MessageContent.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/td/telegram/MessageContent.cpp b/td/telegram/MessageContent.cpp index 35fcb6dd5..944a39b55 100644 --- a/td/telegram/MessageContent.cpp +++ b/td/telegram/MessageContent.cpp @@ -3286,7 +3286,7 @@ Status can_send_message_content(DialogId dialog_id, const MessageContent *conten } break; case MessageContentType::Sticker: - if (!permissions.can_send_messages()) { + if (!permissions.can_send_stickers()) { return Status::Error(400, "Not enough rights to send stickers to the chat"); } if (get_message_content_sticker_type(td, content) == StickerType::CustomEmoji) {