Telegram
- 2 ответа
- 0 вопросов
1
Вклад в тег
from telebot.types import InputMediaPhoto
def send_album_with_text(message):
wget.download("https://example.com/766793/15675732133090s.jpg")
pic1 = open("15675732133090s.jpg", "rb")
wget.download("https://example.com/766793/15675732133111s.jpg")
pic2 = open("15675732133111s.jpg", "rb")
media = [InputMediaPhoto(pic1, caption="test"), InputMediaPhoto(pic2)]
bot.send_media_group(message.chat.id, media)