Fix can_send_message_content for stickers.

This commit is contained in:
levlam 2023-11-22 14:38:22 +03:00
parent 89b0fbc8ff
commit 07c1d53a6d

View File

@ -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) {