Class TdApi.GetMessageEmbeddingCode

  • Enclosing class:
    TdApi

    public static class TdApi.GetMessageEmbeddingCode
    extends TdApi.Function
    Returns an HTML code for embedding the message. Available only for messages in supergroups and channels with a username.

    Returns Text

    • Field Detail

      • 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
        Identifier uniquely determining type of the object.
        See Also:
        Constant Field Values
    • Constructor Detail

      • GetMessageEmbeddingCode

        public GetMessageEmbeddingCode()
        Default constructor for a function, which 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)
        Creates a function, which returns an HTML code for embedding the message. Available only for messages in supergroups and channels with a username.

        Returns Text

        Parameters:
        chatId - Identifier of the chat to which the message belongs.
        messageId - Identifier of the message.
        forAlbum - Pass true to return an HTML code for embedding of the whole media album.