Module tdlight.api

Class TdApi.SponsoredMessages

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

public static final class TdApi.SponsoredMessages extends TdApi.Object
Contains a list of sponsored messages.
  • Field Details

    • messages

      public TdApi.SponsoredMessage[] messages
      List of sponsored messages.
    • messagesBetween

      public int messagesBetween
      The minimum number of messages between shown sponsored messages, or 0 if only one sponsored message must be shown after all ordinary messages.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      See Also:
  • Constructor Details

    • SponsoredMessages

      public SponsoredMessages()
      Contains a list of sponsored messages.
    • SponsoredMessages

      public SponsoredMessages(TdApi.SponsoredMessage[] messages, int messagesBetween)
      Contains a list of sponsored messages.
      Parameters:
      messages - SponsoredMessage[] List of sponsored messages.
      messagesBetween - int The minimum number of messages between shown sponsored messages, or 0 if only one sponsored message must be shown after all ordinary messages.
    • SponsoredMessages

      public SponsoredMessages(DataInput input) throws IOException
      Contains a list of sponsored messages.
      Throws:
      IOException
  • Method Details