Link Search Menu Expand Document

Method: messages.sendMultiMedia

Back to methods index

Send an album or grouped media

Parameters:

NameTypeDescriptionRequired
silentBoolWhether to send the album silently (no notification triggered)Optional
backgroundBoolSend in background?Optional
clear_draftBoolWhether to clear draftsOptional
noforwardsBoolOnly for bots, disallows forwarding and saving of the messages, even if the destination chat doesn’t have content protection enabledOptional
update_stickersets_orderBoolOptional
peerUsername, chat ID, Update, Message or InputPeerThe destination chatOptional
reply_to_msg_idintThe message to reply toOptional
top_msg_idintOptional
multi_mediaArray of InputSingleMediaThe medias to sendYes
schedule_dateintScheduled message date for scheduled messagesOptional
send_asUsername, chat ID, Update, Message or InputPeerSend this message as the specified peerOptional

Return type: Updates

Can bots use this method: YES

MadelineProto Example (now async for huge speed and parallelism!):

if (!file_exists('madeline.php')) {
    copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php');
}
include 'madeline.php';

$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();

// PHP 8+ syntax, use an array on PHP 7.
$Updates = $MadelineProto->messages->sendMultiMedia(silent: Bool, background: Bool, clear_draft: Bool, noforwards: Bool, update_stickersets_order: Bool, peer: InputPeer, reply_to_msg_id: int, top_msg_id: int, multi_media: [InputSingleMedia, InputSingleMedia], schedule_date: int, send_as: InputPeer, );