diff --git a/td/telegram/MessageContent.cpp b/td/telegram/MessageContent.cpp index cd8a968fd..0ba1933ac 100644 --- a/td/telegram/MessageContent.cpp +++ b/td/telegram/MessageContent.cpp @@ -3247,10 +3247,10 @@ void delete_message_content_thumbnail(MessageContent *content, Td *td) { } Status can_send_message_content(DialogId dialog_id, const MessageContent *content, bool is_forward, - bool check_premissions, const Td *td) { + bool check_permissions, const Td *td) { auto dialog_type = dialog_id.get_type(); RestrictedRights permissions = [&] { - if (!check_premissions) { + if (!check_permissions) { return RestrictedRights(true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, ChannelType::Unknown); } diff --git a/td/telegram/MessageContent.h b/td/telegram/MessageContent.h index 9e0ed1166..deb59a883 100644 --- a/td/telegram/MessageContent.h +++ b/td/telegram/MessageContent.h @@ -137,7 +137,7 @@ tl_object_ptr get_message_content_input_media_web_page void delete_message_content_thumbnail(MessageContent *content, Td *td); Status can_send_message_content(DialogId dialog_id, const MessageContent *content, bool is_forward, - bool check_premissions, const Td *td); + bool check_permissions, const Td *td); bool can_forward_message_content(const MessageContent *content);