From aea1ffc46f236e07129bc54f42954a531cf086f0 Mon Sep 17 00:00:00 2001 From: DatDraggy Date: Sun, 29 Aug 2021 08:38:32 +0200 Subject: [PATCH] Fix old non existing can_send_[sticker...] with can_send_other_messages (#746) https://github.com/pyrogram/pyrogram/commit/c9d0c5d75a7646b43cd7e8c1f45715fd1630f797 --- pyrogram/methods/chats/restrict_chat_member.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pyrogram/methods/chats/restrict_chat_member.py b/pyrogram/methods/chats/restrict_chat_member.py index f8a05a0f..d0cc9338 100644 --- a/pyrogram/methods/chats/restrict_chat_member.py +++ b/pyrogram/methods/chats/restrict_chat_member.py @@ -79,10 +79,10 @@ class RestrictChatMember(Scaffold): until_date=until_date, send_messages=True if not permissions.can_send_messages else None, send_media=True if not permissions.can_send_media_messages else None, - send_stickers=True if not permissions.can_send_stickers else None, - send_gifs=True if not permissions.can_send_animations else None, - send_games=True if not permissions.can_send_games else None, - send_inline=True if not permissions.can_use_inline_bots else None, + send_stickers=True if not permissions.can_send_other_messages else None, + send_gifs=True if not permissions.can_send_other_messages else None, + send_games=True if not permissions.can_send_other_messages else None, + send_inline=True if not permissions.can_send_other_messages else None, embed_links=True if not permissions.can_add_web_page_previews else None, send_polls=True if not permissions.can_send_polls else None, change_info=True if not permissions.can_change_info else None,