Skip to content

Commit

Permalink
Removed deprecated can_send_media_messages=False usage from Permiss…
Browse files Browse the repository at this point in the history
…ions.
  • Loading branch information
xvitaly committed Apr 16, 2023
1 parent 6fe11f0 commit 83b3c93
Showing 1 changed file with 15 additions and 17 deletions.
32 changes: 15 additions & 17 deletions src/ecasbot/permissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,18 @@ def __init__(self):
"""
Main constructor of the Permissions class.
"""
self.__jp = ChatPermissions(can_send_messages=True, can_send_media_messages=False, can_send_audios=False,
can_send_documents=False, can_send_photos=False, can_send_videos=False,
can_send_video_notes=False, can_send_voice_notes=False, can_send_polls=False,
can_send_other_messages=False, can_add_web_page_previews=False,
can_change_info=False, can_invite_users=False, can_pin_messages=False,
can_manage_topics=False)
self.__rp = ChatPermissions(can_send_messages=False, can_send_media_messages=False, can_send_audios=False,
can_send_documents=False, can_send_photos=False, can_send_videos=False,
can_send_video_notes=False, can_send_voice_notes=False, can_send_polls=False,
can_send_other_messages=False, can_add_web_page_previews=False,
can_change_info=False, can_invite_users=False, can_pin_messages=False,
can_manage_topics=False)
self.__up = ChatPermissions(can_send_messages=True, can_send_media_messages=True, can_send_audios=True,
can_send_documents=True, can_send_photos=True, can_send_videos=True,
can_send_video_notes=True, can_send_voice_notes=True, can_send_polls=True,
can_send_other_messages=True, can_add_web_page_previews=True, can_change_info=True,
can_invite_users=True, can_pin_messages=True, can_manage_topics=True)
self.__jp = ChatPermissions(can_send_messages=True, can_send_audios=False, can_send_documents=False,
can_send_photos=False, can_send_videos=False, can_send_video_notes=False,
can_send_voice_notes=False, can_send_polls=False, can_send_other_messages=False,
can_add_web_page_previews=False, can_change_info=False, can_invite_users=False,
can_pin_messages=False, can_manage_topics=False)
self.__rp = ChatPermissions(can_send_messages=False, can_send_audios=False, can_send_documents=False,
can_send_photos=False, can_send_videos=False, can_send_video_notes=False,
can_send_voice_notes=False, can_send_polls=False, can_send_other_messages=False,
can_add_web_page_previews=False, can_change_info=False, can_invite_users=False,
can_pin_messages=False, can_manage_topics=False)
self.__up = ChatPermissions(can_send_messages=True, can_send_audios=True, can_send_documents=True,
can_send_photos=True, can_send_videos=True, can_send_video_notes=True,
can_send_voice_notes=True, can_send_polls=True, can_send_other_messages=True,
can_add_web_page_previews=True, can_change_info=True, can_invite_users=True,
can_pin_messages=True, can_manage_topics=True)

0 comments on commit 83b3c93

Please sign in to comment.