Link Search Menu Expand Document

Method: messages.sendMultiMedia

Back to methods index

Send an album or grouped media


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
peerUsername, chat ID, Update, Message or InputPeerThe destination chatOptional
reply_to_msg_idintThe message to reply toOptional
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('', 'madeline.php');
include 'madeline.php';

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

// 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, );