T
T
Tenebrius2020-10-05 19:03:31
API
Tenebrius, 2020-10-05 19:03:31

How to send messages with multiple images in a telegram channel?

There is a channel, the bot sends messages there.

If you use the "sendMessage" method , then it only accepts text, pictures can be attached as previews if there is a URL in the text. 1 picture clings, and it does not look very good.

The " sendMediaGroup " method allows you to send multiple images as an album, but no text.

How to achieve such a result? Multiple photos that can be opened as gallery and text. And all this in one post.
5f7b43a789235501213585.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Danny Arty, 2020-10-06
@Tenebrius

You can use sendMediaGroup . The trick is to set the caption only for the first photo, then the message will be displayed just like in the picture in your question.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question