Module tdlight.api

Class TdApi.GetMessageEmbeddingCode

Enclosing class:
TdApi

public static final class TdApi.GetMessageEmbeddingCode extends TdApi.Function<TdApi.Text>
Returns an HTML code for embedding the message. Available only for messages in supergroups and channels with a username. Returns Text
  • Field Details

    • chatId

      public long chatId
      Identifier of the chat to which the message belongs.
    • messageId

      public long messageId
      Identifier of the message.
    • forAlbum

      public boolean forAlbum
      Pass true to return an HTML code for embedding of the whole media album.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      See Also:
  • Constructor Details

    • GetMessageEmbeddingCode

      public GetMessageEmbeddingCode()
      Returns an HTML code for embedding the message. Available only for messages in supergroups and channels with a username. Returns Text
    • GetMessageEmbeddingCode

      public GetMessageEmbeddingCode(long chatId, long messageId, boolean forAlbum)
      Returns an HTML code for embedding the message. Available only for messages in supergroups and channels with a username. Returns Text
      Parameters:
      chatId - long Identifier of the chat to which the message belongs.
      messageId - long Identifier of the message.
      forAlbum - boolean Pass true to return an HTML code for embedding of the whole media album.
    • GetMessageEmbeddingCode

      public GetMessageEmbeddingCode(DataInput input) throws IOException
      Returns an HTML code for embedding the message. Available only for messages in supergroups and channels with a username. Returns Text
      Throws:
      IOException
  • Method Details