Class TdApi.SponsoredMessage

java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.SponsoredMessage
Enclosing class:
TdApi

public static class TdApi.SponsoredMessage
extends TdApi.Object
Describes a sponsored message.
  • Field Details

    • id

      public byte[] id
      Unique sponsored message identifier.
    • sponsorChatId

      public long sponsorChatId
      Chat identifier.
    • startParameter

      public String startParameter
      Parameter for the bot start message if the sponsored chat is a chat with a bot.
    • content

      public TdApi.MessageContent content
      Content of the message.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      See Also:
      Constant Field Values
  • Constructor Details

    • SponsoredMessage

      public SponsoredMessage()
      Describes a sponsored message.
    • SponsoredMessage

      public SponsoredMessage​(byte[] id, long sponsorChatId, String startParameter, TdApi.MessageContent content)
      Describes a sponsored message.
      Parameters:
      id - byte[] Unique sponsored message identifier.
      sponsorChatId - long Chat identifier.
      startParameter - String Parameter for the bot start message if the sponsored chat is a chat with a bot.
      content - MessageContent Content of the message.
    • SponsoredMessage

      public SponsoredMessage​(DataInput input) throws IOException
      Throws:
      IOException
  • Method Details