S
S
Svoboo2022-01-03 23:29:36
PHP
Svoboo, 2022-01-03 23:29:36

Telegram api in php - how to send multiple pictures and text in one message?

The telegram api has a sendMediaGroup method that allows you to send a bunch of media, but it has a parameter for a text message. There is a sendPhoto method that allows you to send a photo with a caption, but only one. Can I send multiple photos and text in one message?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
nokimaro, 2022-01-05
@nokimaro

Add "caption" to the very first media element in the group, then it will be displayed as a caption.
The text limit is the same as for the signature, up to 1024 characters.
The rest of the media elements in the "caption" group must be empty.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question