api.sendMessageAlbum()
Sends 2-10 messages grouped together into an album. Currently, only audio, document, photo and video messages can be grouped into an album. Documents and audio files can be only grouped in an album with messages of the same type. Returns sent messages
Parameters
SendMessageAlbumParams
:chevron_leftchevron_right
Parameters
Interface
Name | Type | Description |
---|---|---|
chatId | number | Target chat |
messageThreadId | number | If not 0, a message thread identifier in which the messages will be sent |
replyToMessageId | number | Identifier of a message to reply to or 0 |
options | Options to be used to send the messages; pass null to use default options | |
inputMessageContents | Contents of messages to be sent. At most 10 messages can be added to an album |
Returns
ApiResponse
interface:interface ApiResponse {
_: 'sendMessageAlbum' | 'error'
airgram: Airgram
request: {
method: 'sendMessageAlbum'
params: SendMessageAlbumParams
}
response: |
setState: (nextState: Record<string, unknown>) => void
getState: () => Record<string, unknown>
}