sendMediaGroup

Use this method to send a group of photos, videos, documents or audios as an album. Documents and audio files can be only grouped in an album with messages of the same type. On success, an array of Messages that were sent is returned.

Arguments
Name Type Description Required
media inputMediaAudio[] | InputMediaDocument[] | InputMediaPhoto[] | InputMediaVideo[] | array | stdClass[] A JSON-serialized array describing messages to be sent, must include 2-10 items yes
chat_id int | string | null Unique identifier for the target chat or username of the target channel (in the format @channelusername) no
message_thread_id int | null Unique identifier for the target message thread (topic) of the forum; for forum supergroups only no
disable_notification bool | null Sends messages silently. Users will receive a notification with no sound. no
protect_content bool | null Protects the contents of the sent messages from forwarding and saving no
reply_to_message_id int | null If the messages are a reply, ID of the original message no
allow_sending_without_reply bool | null Pass True if the message should be sent even if the specified replied-to message is not found no
token string | null You can use this method on another bot with specify this parameter no
forgot bool | null You can set to not receive request result, dont set it or pass null for turn it off no
answer bool | null You can set to answer to webhook, dont set it or pass null for turn it off no

Output : BPT\types\message[] | BPT\types\responseError | bool

Static or normal : Static

Examples :

request::sendMediaGroup(media: Array, chat_id: int | string | null, message_thread_id: int | null, disable_notification: bool | null, protect_content: bool | null, reply_to_message_id: int | null, allow_sending_without_reply: bool | null, token: String | null, forgot: Boolean | null, answer: Boolean | null);
request::sendMediaGroup(['media' => Array, 'chat_id' => int | string | null, 'message_thread_id' => int | null, 'disable_notification' => bool | null, 'protect_content' => bool | null, 'reply_to_message_id' => int | null, 'allow_sending_without_reply' => bool | null, 'token' => String | null, 'forgot' => Boolean | null, 'answer' => Boolean | null]);
request::sendMediaGroup(media: Array);
request::sendMediaGroup(['media' => Array]);