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_orderBoolWhether to move used stickersets to top, see here for more info on this flag »Optional
invert_mediaBoolIf set, any eventual webpage preview will be shown on top of the message instead of at the bottom.Optional
allow_paid_floodskipBoolOptional
peerUsername, chat ID, Update, Message or InputPeerThe destination chatOptional
reply_toInputReplyToIf set, indicates that the message should be sent in reply to the specified message or story.Optional
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
quick_reply_shortcutInputQuickReplyShortcutOptional
effectlongOptional

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();

$Updates = $MadelineProto->messages->sendMultiMedia(silent: $Bool, background: $Bool, clear_draft: $Bool, noforwards: $Bool, update_stickersets_order: $Bool, invert_media: $Bool, allow_paid_floodskip: $Bool, peer: $InputPeer, reply_to: $InputReplyTo, multi_media: [$InputSingleMedia, $InputSingleMedia], schedule_date: $int, send_as: $InputPeer, quick_reply_shortcut: $InputQuickReplyShortcut, effect: $long, );