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

Merge pull request #1492 from nj-vs-vh/master

Issue #1491: missing await inserted
This commit is contained in:
Badiboy 2022-04-01 18:54:37 +03:00 committed by GitHub
commit 1688a466f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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):
method_url = r'editMessageMedia'
media_json, file = convert_input_media(media)
media_json, file = await convert_input_media(media)
payload = {'media': media_json}
if chat_id:
payload['chat_id'] = chat_id