From 3fa8b97ed24753da13f5a503c65c2cd7c6fb2203 Mon Sep 17 00:00:00 2001 From: Leandro Toledo Date: Thu, 8 Oct 2015 11:30:02 -0300 Subject: [PATCH] Type as optional for GroupChat --- telegram/groupchat.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/telegram/groupchat.py b/telegram/groupchat.py index 1f41af0f6..f4d59723c 100644 --- a/telegram/groupchat.py +++ b/telegram/groupchat.py @@ -33,17 +33,21 @@ class GroupChat(TelegramObject): Args: id (int): title (str): - type (str): + **kwargs: Arbitrary keyword arguments. + + Keyword Args: + type (Optional[str]): """ def __init__(self, id, title, - type): + **kwargs): # Required self.id = int(id) self.title = title - self.type = type + # Optionals + self.type = kwargs.get('type', '') @staticmethod def de_json(data):