Home>

!Yu

I'm trying to find information on how the image was posted without a link and made it seem to be "Embedded" in the message and so far I can't.

Like this:

The image doesn't have the annoying blue bar, and the link doesn't show up. How did you check it?)

Thank you for your help!

use the caption parameter when submitting an image.

Violet2022-01-31 19:00:12
  • Answer # 1

    I did not find the parameter in the documentation that is responsible for the text, but the photo can be sent

    from telebot.types import InputMediaPhoto
    with open('files/1.jpg', 'rb') as f1, open('files/2.jpg', 'rb') as f2:
            bot.send_media_group(call.message.chat.id, [InputMediaPhoto(f1), InputMediaPhoto(f2)])
    
  • Answer # 2

    I did not find the parameter in the documentation that is responsible for the text, but the photo can be sent

    from telebot.types import InputMediaPhoto
    with open('files/1.jpg', 'rb') as f1, open('files/2.jpg', 'rb') as f2:
            bot.send_media_group(call.message.chat.id, [InputMediaPhoto(f1), InputMediaPhoto(f2)])