M
M
mishennka2020-07-06 23:48:13
Python
mishennka, 2020-07-06 23:48:13

Why send_media_group outputs photos in pairs and not together?

I'm trying to display two images as an album, like this:

@bot.message_handler(content_types=['photo', 'text'])
def photo(message):
    fileID = message.photo[-1].file_id
    fileID2 = message.photo[-1].file_id

    media = [InputMediaPhoto( fileID, caption='окококок' ), InputMediaPhoto( fileID2)]
    bot.send_media_group(message.from_user.id,media)


But in the end it turns out like this: 5f038da13f6c4122157330.png

Help, noob in this matter

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question