Method: messages.sendMultiMedia
Send an album or grouped media
Parameters:
Name | Type | Description | Required |
---|---|---|---|
silent | Bool | Whether to send the album silently (no notification triggered) | Optional |
background | Bool | Send in background? | Optional |
clear_draft | Bool | Whether to clear drafts | Optional |
noforwards | Bool | Only for bots, disallows forwarding and saving of the messages, even if the destination chat doesn’t have content protection enabled | Optional |
update_stickersets_order | Bool | Whether to move used stickersets to top, see here for more info on this flag » | Optional |
invert_media | Bool | If set, any eventual webpage preview will be shown on top of the message instead of at the bottom. | Optional |
allow_paid_floodskip | Bool | Optional | |
peer | Username, chat ID, Update, Message or InputPeer | The destination chat | Optional |
reply_to | InputReplyTo | If set, indicates that the message should be sent in reply to the specified message or story. | Optional |
multi_media | Array of InputSingleMedia | The medias to send | Yes |
schedule_date | int | Scheduled message date for scheduled messages | Optional |
send_as | Username, chat ID, Update, Message or InputPeer | Send this message as the specified peer | Optional |
quick_reply_shortcut | InputQuickReplyShortcut | Optional | |
effect | long | Optional |
Return type: Updates
Can userbots use this method: YES
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, );