More IDE friendliness

This commit is contained in:
Jacob Bom 2017-01-09 19:29:05 +01:00
parent 4dee785fba
commit 27b2fd64b7
2 changed files with 13 additions and 6 deletions

View file

@ -35,12 +35,12 @@ class Animation(TelegramObject):
"""
def __init__(self, file_id, **kwargs):
def __init__(self, file_id, thumb=None, file_name=None, mime_type=None, file_size=0, **kwargs):
self.file_id = file_id
self.thumb = kwargs.get('thumb')
self.file_name = kwargs.get('file_name')
self.mime_type = kwargs.get('mime_type')
self.file_size = kwargs.get('file_size')
self.thumb = thumb
self.file_name = file_name
self.mime_type = mime_type
self.file_size = file_size
@staticmethod
def de_json(data, bot):

View file

@ -734,7 +734,14 @@ class Bot(TelegramObject):
@log
@message
def sendGame(self, chat_id, game_short_name, **kwargs):
def sendGame(self,
chat_id,
game_short_name,
disable_notification=False,
reply_to_message_id=None,
reply_markup=None,
timeout=None,
**kwargs):
"""Use this method to send a game.
Args: