Class TdApi.GetVideoMessageAdvertisements

Enclosing class:
TdApi

public static class TdApi.GetVideoMessageAdvertisements extends TdApi.Function<TdApi.VideoMessageAdvertisements>
Returns advertisements to be shown while a video from a message is watched. Available only if messageProperties.canGetVideoAdvertisements.

Returns VideoMessageAdvertisements

  • Field Details

    • chatId

      public long chatId
      Identifier of the chat with the message.
    • messageId

      public long messageId
      Identifier of the message.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      See Also:
  • Constructor Details

    • GetVideoMessageAdvertisements

      public GetVideoMessageAdvertisements()
      Default constructor for a function, which returns advertisements to be shown while a video from a message is watched. Available only if messageProperties.canGetVideoAdvertisements.

      Returns VideoMessageAdvertisements

    • GetVideoMessageAdvertisements

      public GetVideoMessageAdvertisements(long chatId, long messageId)
      Creates a function, which returns advertisements to be shown while a video from a message is watched. Available only if messageProperties.canGetVideoAdvertisements.

      Returns VideoMessageAdvertisements

      Parameters:
      chatId - Identifier of the chat with the message.
      messageId - Identifier of the message.
  • Method Details