From f46f5a93a7cd936ffdabfdff4fd8dd229016c514 Mon Sep 17 00:00:00 2001 From: Dmitry Kolomatskiy <58207913+lemontree210@users.noreply.github.com> Date: Tue, 13 Dec 2022 17:39:32 +0300 Subject: [PATCH] add link to InputMediaDocument --- Working-with-Files-and-Media.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Working-with-Files-and-Media.md b/Working-with-Files-and-Media.md index 488cdf5..5aaa243 100644 --- a/Working-with-Files-and-Media.md +++ b/Working-with-Files-and-Media.md @@ -89,7 +89,7 @@ Again, please check out the docs for details on required and optional arguments. --- ## Editing a file -When you have sent a file, you may want to edit it. This works similarly as `send_media_group`, i.e. the media must be wrapped into a `InputMedia` object. Again, with `document` as example, we'll call [`bot.edit_message_media`](https://python-telegram-bot.readthedocs.io/telegram.bot.html#telegram.Bot.edit_message_media): +When you have sent a file, you may want to edit it. This works similarly as `send_media_group`, i.e. the media must be wrapped into a `InputMedia` object. Again, with `document` as example, we'll call [`bot.edit_message_media`](https://python-telegram-bot.readthedocs.io/telegram.bot.html#telegram.Bot.edit_message_media) and pass an instance of [`InputMediaDocument`](https://python-telegram-bot.readthedocs.io/telegram.inputmediadocument.html#telegram-inputmediadocument) as `media`: ```python await bot.edit_message_media(chat_id=chat_id, message_id=message_id, media=InputMediaDocument(media=open('tests/test.png'), ...))