add constants for Chat.type and ChatMember.status

This commit is contained in:
Jannes Höke 2016-05-28 16:51:44 +02:00
parent ff00e211d7
commit 25bcfa9b35
2 changed files with 11 additions and 0 deletions

View file

@ -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)

View file

@ -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