Fix misprint by @AYMENJD.

This commit is contained in:
levlam 2023-12-02 22:19:48 +03:00
parent 24893faf75
commit 4c1f6d6608
2 changed files with 3 additions and 3 deletions

View File

@ -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, 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(); auto dialog_type = dialog_id.get_type();
RestrictedRights permissions = [&] { 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, return RestrictedRights(true, true, true, true, true, true, true, true, true, true, true, true, true, true, true,
true, true, ChannelType::Unknown); true, true, ChannelType::Unknown);
} }

View File

@ -137,7 +137,7 @@ tl_object_ptr<telegram_api::InputMedia> get_message_content_input_media_web_page
void delete_message_content_thumbnail(MessageContent *content, Td *td); void delete_message_content_thumbnail(MessageContent *content, Td *td);
Status can_send_message_content(DialogId dialog_id, const MessageContent *content, bool is_forward, 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); bool can_forward_message_content(const MessageContent *content);