Module tdlight.api

Class TdApi.SponsoredMessage

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

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

    • messageId

      public long messageId
      Message identifier; unique for the chat to which the sponsored message belongs among both ordinary and sponsored messages.
    • sponsorChatId

      public long sponsorChatId
      Sponsor chat identifier; 0 if the sponsor chat is accessible through an invite link.
    • sponsorChatInfo

      public TdApi.ChatInviteLinkInfo sponsorChatInfo
      Information about the sponsor chat; may be null unless sponsorChatId == 0.
    • content

      public TdApi.MessageContent content
      Content of the message. Currently, can be only of the type messageText.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      See Also:
  • Constructor Details

    • SponsoredMessage

      public SponsoredMessage()
      Describes a sponsored message.
    • SponsoredMessage

      public SponsoredMessage(long messageId, long sponsorChatId, TdApi.ChatInviteLinkInfo sponsorChatInfo, TdApi.InternalLinkType link, TdApi.MessageContent content)
      Describes a sponsored message.
      Parameters:
      messageId - long Message identifier; unique for the chat to which the sponsored message belongs among both ordinary and sponsored messages.
      sponsorChatId - long Sponsor chat identifier; 0 if the sponsor chat is accessible through an invite link.
      sponsorChatInfo - ChatInviteLinkInfo Information about the sponsor chat; may be null unless sponsorChatId == 0.
      link - InternalLinkType An internal link to be opened when the sponsored message is clicked; may be null if the sponsor chat needs to be opened instead.
      content - MessageContent Content of the message. Currently, can be only of the type messageText.
    • SponsoredMessage

      public SponsoredMessage(DataInput input) throws IOException
      Describes a sponsored message.
      Throws:
      IOException
  • Method Details