mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2025-03-30 11:19:24 +02:00
Add RESTRICTED as constant to ChatMember (#761)
This commit is contained in:
parent
6aacde189e
commit
d19ae5084a
1 changed files with 3 additions and 1 deletions
|
@ -59,7 +59,7 @@ class ChatMember(TelegramObject):
|
|||
Args:
|
||||
user (:class:`telegram.User`): Information about the user.
|
||||
status (:obj:`str`): The member's status in the chat. Can be 'creator', 'administrator',
|
||||
'member', 'left' or 'kicked'.
|
||||
'member', 'restricted', 'left' or 'kicked'.
|
||||
until_date (:class:`datetime.datetime`, optional): Restricted and kicked only. Date when
|
||||
restrictions will be lifted for this user.
|
||||
can_be_edited (:obj:`bool`, optional): Administrators only. True, if the bot is allowed to
|
||||
|
@ -103,6 +103,8 @@ class ChatMember(TelegramObject):
|
|||
""":obj:`str`: 'left'"""
|
||||
MEMBER = 'member'
|
||||
""":obj:`str`: 'member'"""
|
||||
RESTRICTED = 'restricted'
|
||||
""":obj:`str`: 'restricted'"""
|
||||
|
||||
def __init__(self, user, status, until_date=None, can_be_edited=None,
|
||||
can_change_info=None, can_post_messages=None, can_edit_messages=None,
|
||||
|
|
Loading…
Add table
Reference in a new issue