messages.sendMultiMedia

Send an album or grouped media

updatesTooLong#e317af7e = Updates;
updateShortMessage#313bc7f8 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int user_id:long message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?long reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> ttl_period:flags.25?int = Updates;
updateShortChatMessage#4d6deea5 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int from_id:long chat_id:long message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?long reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector<MessageEntity> ttl_period:flags.25?int = Updates;
updateShort#78d4dec1 update:Update date:int = Updates;
updatesCombined#725b04c3 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq_start:int seq:int = Updates;
updates#74ae4240 updates:Vector<Update> users:Vector<User> chats:Vector<Chat> date:int seq:int = Updates;
updateShortSentMessage#9015e101 flags:# out:flags.1?true id:int pts:int pts_count:int date:int media:flags.9?MessageMedia entities:flags.7?Vector<MessageEntity> ttl_period:flags.25?int = Updates;
---functions---
messages.sendMultiMedia#cc0110cb flags:# silent:flags.5?true background:flags.6?true clear_draft:flags.7?true peer:InputPeer reply_to_msg_id:flags.0?int multi_media:Vector<InputSingleMedia> schedule_date:flags.10?int = Updates;

Parameters

Name Type Description
flags # Flags, see TL conditional fields
silent flags.5?true Whether to send the album silently (no notification triggered)
background flags.6?true Send in background?
clear_draft flags.7?true Whether to clear drafts
peer InputPeer The destination chat
reply_to_msg_id flags.0?int The message to reply to
multi_media Vector<InputSingleMedia> The medias to send
schedule_date flags.10?int Scheduled message date for scheduled messages

Result

Updates

Possible errors

Code Type Description
400 CHAT_ADMIN_REQUIRED You must be an admin in this chat to do this
400 MEDIA_EMPTY The provided media object is invalid
400 MEDIA_INVALID Media invalid
400 MULTI_MEDIA_TOO_LONG Too many media files for album
400 PEER_ID_INVALID The provided peer id is invalid
400 RANDOM_ID_EMPTY Random ID empty

Bots can use this method

Related pages

Message drafts

How to handle message drafts

Uploading and Downloading Files

How to transfer large data batches correctly.