Answer the question
In order to leave comments, you need to log in
How to send aiogram python photo?
I have a photo, I don’t know how to send it through aiogram python
, I googled it and didn’t find it,
please tell me the
code:
img = requests.get('https:' + src, headers=headers)
out = open('../Gdz/img/gdz.png', 'wb')
out.write(img.content)
@dp.message_handler(commands=['start', 'help'])
async def send_welcome(message: types.Message):
await bot.send_photo(admin_id, out)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question