
Telegram
1
Вклад в тег
async def edit_photo(call: types.CallbackQuery):
photo = types.InputMediaPhoto(
open('путь к картинке,
'rb'),
caption='текст под картинкой (если нужен)',
parse_mode='html')
await bot.edit_message_media(chat_id=call.from_user.id, message_id=call.message.message_id, media=photo,)