Type as optional for GroupChat

This commit is contained in:
Leandro Toledo 2015-10-08 11:30:02 -03:00
parent f2b0cb46a2
commit 3fa8b97ed2

View file

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