Answer the question
In order to leave comments, you need to log in
What to do with Wrong http url specified aiogram error?
When changing a media file, I encountered an error aiogram.utils.exceptions.BadRequest: Wrong http url specified .
The code:
photo1 = types.InputMediaPhoto('avatar/photos/file_8.jpg')
await bot.edit_message_media(media=photo1, chat_id=call.from_user.id, message_id=call.message.message_id)
Answer the question
In order to leave comments, you need to log in
Media must be from the Internet. That is, a link to an image from the Internet
https://i.pinimg.com/originals/f5/89/8a/f5898ac86f...
like this
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question