mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
There's no thumb in InputMediaPhoto. And arg media can be string (file_id)
This commit is contained in:
parent
1e89049344
commit
3d6219f441
1 changed files with 2 additions and 2 deletions
|
|
@ -130,9 +130,9 @@ class InputMediaPhoto(InputMedia):
|
|||
https://core.telegram.org/bots/api#inputmediaphoto
|
||||
"""
|
||||
|
||||
def __init__(self, media: base.InputFile, thumb: typing.Union[base.InputFile, base.String] = None,
|
||||
def __init__(self, media: typing.Union[base.InputFile, base.String],
|
||||
caption: base.String = None, parse_mode: base.Boolean = None, **kwargs):
|
||||
super(InputMediaPhoto, self).__init__(type='photo', media=media, thumb=thumb,
|
||||
super(InputMediaPhoto, self).__init__(type='photo', media=media,
|
||||
caption=caption, parse_mode=parse_mode,
|
||||
conf=kwargs)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue