mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-26 00:56:22 +01:00
More IDE friendliness
This commit is contained in:
parent
4dee785fba
commit
27b2fd64b7
2 changed files with 13 additions and 6 deletions
|
@ -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):
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue