Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
you need to pass a list of InputMediaPhoto objects
bot.send_media_group(message.chat.id,
[telebot.types.InputMediaPhoto(open(photo, 'rb')) for photo in ['photo1', 'photo2']])
You didn't specify the library you're working on!
But for TeleBot it is done like this:
else:
bot.send_photo(message.chat.id, open('название фото1.png', 'rb'))
bot.send_photo(message.chat.id, open('название фото2.png', 'rb'))
bot.send_photo(message.chat.id, open('название фото3.png', 'rb'))
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question