mirror of
https://github.com/danog/MadelineProtoDocs.git
synced 2024-12-02 17:55:35 +01:00
3.2 KiB
3.2 KiB
title | description | grand_parent | parent | image | redirect_from |
---|---|---|---|---|---|
messages.sendMultiMedia | Send an [album or grouped media](https://core.telegram.org/api/files#albums-grouped-media) | Telegram RPC API | Methods | https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png | /API_docs/methods/messages_sendMultiMedia.html |
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 |
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 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, peer: $InputPeer, reply_to: $InputReplyTo, multi_media: [$InputSingleMedia, $InputSingleMedia], schedule_date: $int, send_as: $InputPeer, quick_reply_shortcut: $InputQuickReplyShortcut, effect: $long, );