mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2025-03-17 04:39:55 +01:00
add constants for Chat.type and ChatMember.status
This commit is contained in:
parent
ff00e211d7
commit
25bcfa9b35
2 changed files with 11 additions and 0 deletions
|
@ -42,6 +42,11 @@ class Chat(TelegramObject):
|
|||
type (Optional[str]):
|
||||
"""
|
||||
|
||||
PRIVATE = 'private'
|
||||
GROUP = 'group'
|
||||
SUPERGROUP = 'supergroup'
|
||||
CHANNEL = 'channel'
|
||||
|
||||
def __init__(self, id, type, **kwargs):
|
||||
# Required
|
||||
self.id = int(id)
|
||||
|
|
|
@ -34,6 +34,12 @@ class ChatMember(TelegramObject):
|
|||
status (str):
|
||||
"""
|
||||
|
||||
CREATOR = 'creator'
|
||||
ADMINISTRATOR = 'administrator'
|
||||
MEMBER = 'member'
|
||||
LEFT = 'left'
|
||||
KICKED = 'kicked'
|
||||
|
||||
def __init__(self, user, status, **kwargs):
|
||||
# Required
|
||||
self.user = user
|
||||
|
|
Loading…
Add table
Reference in a new issue