Module tdlight.api

Class TdApi.SendMessageAlbum

Enclosing class:
TdApi

public static final class TdApi.SendMessageAlbum extends TdApi.Function<TdApi.Messages>
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.

Returns Messages

  • Field Details

    • chatId

      public long chatId
      Target chat.
    • messageThreadId

      public long messageThreadId
      If not 0, a message thread identifier in which the messages will be sent.
    • replyToMessageId

      public long replyToMessageId
      Identifier of a message to reply to or 0.
    • options

      public TdApi.MessageSendOptions options
      Options to be used to send the messages; pass null to use default options.
    • inputMessageContents

      public TdApi.InputMessageContent[] inputMessageContents
      Contents of messages to be sent. At most 10 messages can be added to an album.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      See Also:
  • Constructor Details

    • SendMessageAlbum

      public 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.

      Returns Messages

    • SendMessageAlbum

      public SendMessageAlbum(long chatId, long messageThreadId, long replyToMessageId, TdApi.MessageSendOptions options, TdApi.InputMessageContent[] inputMessageContents)
      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.

      Returns Messages

      Parameters:
      chatId - long Target chat.
      messageThreadId - long If not 0, a message thread identifier in which the messages will be sent.
      replyToMessageId - long Identifier of a message to reply to or 0.
      options - MessageSendOptions Options to be used to send the messages; pass null to use default options.
      inputMessageContents - InputMessageContent[] Contents of messages to be sent. At most 10 messages can be added to an album.
    • SendMessageAlbum

      public SendMessageAlbum(DataInput input) throws IOException
      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.

      Returns Messages

      Throws:
      IOException
  • Method Details