1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00

Compare commits

...

2 Commits

Author SHA1 Message Date
Badiboy
1688a466f4
Merge pull request #1492 from nj-vs-vh/master
Issue #1491: missing await inserted
2022-04-01 18:54:37 +03:00
Igor Vaiman
625da4cdd9 missing await inserted 2022-03-27 18:32:05 +04:00

View File

@ -1200,7 +1200,7 @@ async def edit_message_caption(token, caption, chat_id=None, message_id=None, in
async def edit_message_media(token, media, chat_id=None, message_id=None, inline_message_id=None, reply_markup=None): async def edit_message_media(token, media, chat_id=None, message_id=None, inline_message_id=None, reply_markup=None):
method_url = r'editMessageMedia' method_url = r'editMessageMedia'
media_json, file = convert_input_media(media) media_json, file = await convert_input_media(media)
payload = {'media': media_json} payload = {'media': media_json}
if chat_id: if chat_id:
payload['chat_id'] = chat_id payload['chat_id'] = chat_id