Fix old non existing can_send_[sticker...] with can_send_other_messages (#746)

c9d0c5d75a
This commit is contained in:
DatDraggy 2021-08-29 08:38:32 +02:00 committed by GitHub
parent 9e9a944e86
commit aea1ffc46f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -79,10 +79,10 @@ class RestrictChatMember(Scaffold):
until_date=until_date, until_date=until_date,
send_messages=True if not permissions.can_send_messages else None, send_messages=True if not permissions.can_send_messages else None,
send_media=True if not permissions.can_send_media_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_stickers=True if not permissions.can_send_other_messages else None,
send_gifs=True if not permissions.can_send_animations else None, send_gifs=True if not permissions.can_send_other_messages else None,
send_games=True if not permissions.can_send_games else None, send_games=True if not permissions.can_send_other_messages else None,
send_inline=True if not permissions.can_use_inline_bots 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, embed_links=True if not permissions.can_add_web_page_previews else None,
send_polls=True if not permissions.can_send_polls else None, send_polls=True if not permissions.can_send_polls else None,
change_info=True if not permissions.can_change_info else None, change_info=True if not permissions.can_change_info else None,