messages.sendMultiMedia
Send an album or grouped media
Send an [album or grouped media](https://core.telegram.org/api/files.md#albums-grouped-media)
| الاسم | النوع | مطلوب | الوصف |
|---|---|---|---|
silent | true | لأ | Whether to send the album silently (no notification triggered) |
background | true | لأ | Send in background? |
clear_draft | true | لأ | Whether to clear [drafts](https://core.telegram.org/api/drafts.md) |
noforwards | true | لأ | Only for bots, disallows forwarding and saving of the messages, even if the destination chat doesn't have [content protection](https://telegram.org/blog/content-protection-delete-by-date-and-more) enabled |
update_stickersets_order | true | لأ | Whether to move used stickersets to top, [see here for more info on this flag »](https://core.telegram.org/api/stickers.md#recent-stickersets) |
invert_media | true | لأ | If set, any eventual webpage preview will be shown on top of the message instead of at the bottom. |
allow_paid_floodskip | true | لأ | Bots only: if set, allows sending up to 1000 messages per second, ignoring [broadcasting limits](https://core.telegram.org/bots/faq.md#how-can-i-message-all-of-my-bot-39s-subscribers-at-once) for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance. |
peer | InputPeer | أيوه | The destination chat |
reply_to | InputReplyTo | لأ | If set, indicates that the message should be sent in reply to the specified message or story. |
multi_media | Vector<InputSingleMedia> | أيوه | The medias to send: note that they must be separately uploaded using [messages.uploadMedia](https://core.telegram.org/method/messages.uploadMedia.md) first, using raw `inputMediaUploaded*` constructors is not supported. |
schedule_date | int | لأ | Scheduled message date for scheduled messages |
send_as | InputPeer | لأ | Send this message as the specified peer |
quick_reply_shortcut | InputQuickReplyShortcut | لأ | Add the message to the specified [quick reply shortcut »](https://core.telegram.org/api/business.md#quick-reply-shortcuts), instead. |
effect | long | لأ | Specifies a [message effect »](https://core.telegram.org/api/effects.md) to use for the message. |
allow_paid_stars | long | لأ | For [paid messages »](https://core.telegram.org/api/paid-messages.md), specifies the amount of [Telegram Stars](https://core.telegram.org/api/stars.md) the user has agreed to pay in order to send the message. |
الردود
Updates
MTProto RPC
- 403 · ALLOW_PAYMENT_REQUIRED_%d — This peer charges %d [Telegram Stars](https://core.telegram.org/api/stars.md) per message, but the allow_paid_stars was not set or its value is smaller than %d.
- 400 · BUSINESS_CONNECTION_INVALID — The connection_id passed to the wrapping [invokeWithBusinessConnection](https://core.telegram.org/api/business.md) call is invalid.
- 400 · BUSINESS_PEER_INVALID — Messages can't be set to the specified peer through the current [business connection](https://core.telegram.org/api/business.md#connected-bots).
- 400 · CHANNEL_INVALID — The provided channel is invalid.
- 400 · CHANNEL_PRIVATE — You haven't joined this channel/supergroup.
- 400 · CHAT_ADMIN_REQUIRED — You must be an admin in this chat to do this.
- 400 · CHAT_FORWARDS_RESTRICTED — You can't forward messages from a protected chat.
- 403 · CHAT_SEND_MEDIA_FORBIDDEN — You can't send media in this chat.
- 403 · CHAT_SEND_PHOTOS_FORBIDDEN — You can't send photos in this chat.
- 403 · CHAT_SEND_VIDEOS_FORBIDDEN — You can't send videos in this chat.
- 403 · CHAT_WRITE_FORBIDDEN — You can't write in this chat.
- 400 · EFFECT_ID_INVALID — The specified effect ID is invalid.
- 400 · ENTITY_BOUNDS_INVALID — A specified [entity offset or length](https://core.telegram.org/api/entities.md#entity-length) is invalid, see [here »](https://core.telegram.org/api/entities.md#entity-length) for info on how to properly compute the entity offset/length.
- 400 · FILE_REFERENCE_%d_EMPTY — The file reference of the media file at offset %d in the multi_media array is invalid.
- 400 · FILE_REFERENCE_%d_EXPIRED — The file reference of the media file at index %d in the passed media array expired, it [must be refreshed as specified in the documentation](https://core.telegram.org/api/file-references.md). .
- 400 · FILE_REFERENCE_%d_INVALID — The [file reference](https://core.telegram.org/api/file-references.md) of the media file at index %d in the passed media array is invalid.
- 400 · MEDIA_CAPTION_TOO_LONG — The caption is too long.
- 400 · MEDIA_EMPTY — The provided media object is invalid.
- 400 · MEDIA_INVALID — Media invalid.
- 400 · MSG_ID_INVALID — Invalid message ID provided.
- 400 · MULTI_MEDIA_TOO_LONG — Too many media files for album.
- 406 · PEER_ID_INVALID — The provided peer id is invalid.
- 403 · PRIVACY_PREMIUM_REQUIRED — You need a [Telegram Premium subscription](https://core.telegram.org/api/premium.md) to send a message to this user.
- 400 · QUICK_REPLIES_BOT_NOT_ALLOWED — [Quick replies](https://core.telegram.org/api/business.md#quick-reply-shortcuts) cannot be used by bots.
- 400 · QUICK_REPLIES_TOO_MUCH — A maximum of [appConfig.quick_replies_limit](https://core.telegram.org/api/config.md#quick-replies-limit) shortcuts may be created, the limit was reached.
- 500 · RANDOM_ID_DUPLICATE — You provided a random ID that was already used.
- 400 · RANDOM_ID_EMPTY — Random ID empty.
- 400 · REPLY_MESSAGES_TOO_MUCH — Each shortcut can contain a maximum of [appConfig.quick_reply_messages_limit](https://core.telegram.org/api/config.md#quick-reply-messages-limit) messages, the limit was reached.
- 400 · REPLY_TO_INVALID — The specified reply_to field is invalid.
- 400 · SCHEDULE_DATE_TOO_LATE — You can't schedule a message this far in the future.
- 400 · SCHEDULE_TOO_MUCH — There are too many scheduled messages.
- 400 · SEND_AS_PEER_INVALID — You can't send messages as the specified peer.
- 420 · SLOWMODE_WAIT_%d — Slowmode is enabled in this chat: wait %d seconds before sending another message to this chat.
- 400 · TOPIC_CLOSED — This topic was closed, you can't send messages to it anymore.
- 400 · TOPIC_DELETED — The specified topic was deleted.
- 400 · USER_BANNED_IN_CHANNEL — You're banned from sending messages in supergroups/channels.
- 400 · USER_IS_BLOCKED — You were blocked by this user.