Код: Выделить всё
await bot.send_message(admin, 'Bot is working')
new_address = "1234329939359870024"
from io import BytesIO
img = qrcode.make(new_address)
stream = BytesIO()
img.save(stream)
stream.seek(0)
await bot.send_photo(admin_id, stream)
ОШИБКА:
Код: Выделить всё
Input should be a valid string [type=string_type, input_value=, input_type=BytesIO]Подробнее здесь: https://stackoverflow.com/questions/791 ... s-an-image
Мобильная версия