-
Notifications
You must be signed in to change notification settings - Fork 0
Send attachment
Borbuev Beksultan edited this page May 16, 2024
·
1 revision
Use this method to send a group of photos, videos, documents, or audios as an album.
-
HTTP Method: POST
-
URL:
/api/1/messages/sendMediaGroup
-
business_connection_id (String, optional): Unique identifier of the business connection on behalf of which the message will be sent.
-
chat_id (Integer or String, required): Unique identifier for the target chat or username of the target channel (in the format @channelusername).
-
message_thread_id (Integer, optional): Unique identifier for the target message thread (topic) of the forum; for forum supergroups only.
-
media (Array of InputMediaAudio, InputMediaDocument, InputMediaPhoto, and InputMediaVideo, required): A JSON-serialized array describing messages to be sent, must include 2-10 items.
-
Error Responses:
-
Status Code: 400 Bad Request
- Content: Invalid request parameters.
-
Status Code: 500 Internal Server Error
- Content: Server error occurred.
-
Status Code: 400 Bad Request