Package org.drinkless.tdlib
Class TdApi.VideoMessageAdvertisement
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.VideoMessageAdvertisement
- Enclosing class:
- TdApi
Describes an advertisent to be shown while a video from a message is watched.
-
Field Summary
FieldsModifier and TypeFieldDescriptionIf non-empty, additional information about the sponsored message to be shown along with the message.booleanTrue, if the advertisement can be reported to Telegram moderators through reportVideoMessageAdvertisement.static final intIdentifier uniquely determining type of the object.intThe maximum amount of time the advertisement must be displayed before it must be automatically hidden, in seconds.intThe minimum amount of time the advertisement must be displayed before it can be hidden by the user, in seconds.Information about the sponsor of the advertisement.Text of the advertisement.Title of the sponsored message.longUnique identifier of this result. -
Constructor Summary
ConstructorsConstructorDescriptionDescribes an advertisent to be shown while a video from a message is watched.VideoMessageAdvertisement(long uniqueId, String text, int minDisplayDuration, int maxDisplayDuration, boolean canBeReported, TdApi.AdvertisementSponsor sponsor, String title, String additionalInfo) Describes an advertisent to be shown while a video from a message is watched. -
Method Summary
Modifier and TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
Field Details
-
uniqueId
public long uniqueIdUnique identifier of this result. -
text
Text of the advertisement. -
minDisplayDuration
public int minDisplayDurationThe minimum amount of time the advertisement must be displayed before it can be hidden by the user, in seconds. -
maxDisplayDuration
public int maxDisplayDurationThe maximum amount of time the advertisement must be displayed before it must be automatically hidden, in seconds. -
canBeReported
public boolean canBeReportedTrue, if the advertisement can be reported to Telegram moderators through reportVideoMessageAdvertisement. -
sponsor
Information about the sponsor of the advertisement. -
title
Title of the sponsored message. -
additionalInfo
If non-empty, additional information about the sponsored message to be shown along with the message. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
VideoMessageAdvertisement
public VideoMessageAdvertisement()Describes an advertisent to be shown while a video from a message is watched. -
VideoMessageAdvertisement
public VideoMessageAdvertisement(long uniqueId, String text, int minDisplayDuration, int maxDisplayDuration, boolean canBeReported, TdApi.AdvertisementSponsor sponsor, String title, String additionalInfo) Describes an advertisent to be shown while a video from a message is watched.- Parameters:
uniqueId- Unique identifier of this result.text- Text of the advertisement.minDisplayDuration- The minimum amount of time the advertisement must be displayed before it can be hidden by the user, in seconds.maxDisplayDuration- The maximum amount of time the advertisement must be displayed before it must be automatically hidden, in seconds.canBeReported- True, if the advertisement can be reported to Telegram moderators through reportVideoMessageAdvertisement.sponsor- Information about the sponsor of the advertisement.title- Title of the sponsored message.additionalInfo- If non-empty, additional information about the sponsored message to be shown along with the message.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-