Module tdlight.api

Class TdApi.GetChatSponsoredMessage

Enclosing class:
TdApi

public static final class TdApi.GetChatSponsoredMessage extends TdApi.Function<TdApi.SponsoredMessage>
Returns sponsored message to be shown in a chat; for channel chats only. Returns a 404 error if there is no sponsored message in the chat. Returns SponsoredMessage
  • Field Details

    • chatId

      public long chatId
      Identifier of the chat.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      See Also:
  • Constructor Details

    • GetChatSponsoredMessage

      public GetChatSponsoredMessage()
      Returns sponsored message to be shown in a chat; for channel chats only. Returns a 404 error if there is no sponsored message in the chat. Returns SponsoredMessage
    • GetChatSponsoredMessage

      public GetChatSponsoredMessage(long chatId)
      Returns sponsored message to be shown in a chat; for channel chats only. Returns a 404 error if there is no sponsored message in the chat. Returns SponsoredMessage
      Parameters:
      chatId - long Identifier of the chat.
    • GetChatSponsoredMessage

      public GetChatSponsoredMessage(DataInput input) throws IOException
      Returns sponsored message to be shown in a chat; for channel chats only. Returns a 404 error if there is no sponsored message in the chat. Returns SponsoredMessage
      Throws:
      IOException
  • Method Details