Module tdlight.api

Class TdApi.ViewSponsoredMessage

Enclosing class:
TdApi

public static final class TdApi.ViewSponsoredMessage extends TdApi.Function<TdApi.Ok>
Informs TDLib that a sponsored message was viewed by the user.

Returns Ok

  • Field Details

    • chatId

      public long chatId
      Identifier of the chat with the sponsored message.
    • sponsoredMessageId

      public int sponsoredMessageId
      The identifier of the sponsored message being viewed.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      See Also:
  • Constructor Details

    • ViewSponsoredMessage

      public ViewSponsoredMessage()
      Informs TDLib that a sponsored message was viewed by the user.

      Returns Ok

    • ViewSponsoredMessage

      public ViewSponsoredMessage(long chatId, int sponsoredMessageId)
      Informs TDLib that a sponsored message was viewed by the user.

      Returns Ok

      Parameters:
      chatId - long Identifier of the chat with the sponsored message.
      sponsoredMessageId - int The identifier of the sponsored message being viewed.
    • ViewSponsoredMessage

      public ViewSponsoredMessage(DataInput input) throws IOException
      Informs TDLib that a sponsored message was viewed by the user.

      Returns Ok

      Throws:
      IOException
  • Method Details