Package org.drinkless.tdlib
Class TdApi.SponsoredMessage
- java.lang.Object
-
- org.drinkless.tdlib.TdApi.Object
-
- org.drinkless.tdlib.TdApi.SponsoredMessage
-
- Enclosing class:
- TdApi
public static class TdApi.SponsoredMessage extends TdApi.Object
Describes a sponsored message.
-
-
Field Summary
Fields Modifier and Type Field Description static intCONSTRUCTORIdentifier uniquely determining type of the object.TdApi.MessageContentcontentContent of the message.TdApi.InternalLinkTypelinkAn internal link to be opened when the sponsored message is clicked; may be null.longmessageIdMessage identifier; unique for the chat to which the sponsored message belongs among both ordinary and sponsored messages.longsponsorChatIdChat identifier.
-
Constructor Summary
Constructors Constructor Description SponsoredMessage()Describes a sponsored message.SponsoredMessage(long messageId, long sponsorChatId, TdApi.InternalLinkType link, TdApi.MessageContent content)Describes a sponsored message.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetConstructor()-
Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
-
-
-
Field Detail
-
messageId
public long messageId
Message identifier; unique for the chat to which the sponsored message belongs among both ordinary and sponsored messages.
-
sponsorChatId
public long sponsorChatId
Chat identifier.
-
link
public TdApi.InternalLinkType link
An internal link to be opened when the sponsored message is clicked; may be null. If null, the sponsor chat needs to be opened instead.
-
content
public TdApi.MessageContent content
Content of the message. Currently, can be only of the type messageText.
-
CONSTRUCTOR
public static final int CONSTRUCTOR
Identifier uniquely determining type of the object.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SponsoredMessage
public SponsoredMessage()
Describes a sponsored message.
-
SponsoredMessage
public SponsoredMessage(long messageId, long sponsorChatId, TdApi.InternalLinkType link, TdApi.MessageContent content)Describes a sponsored message.- Parameters:
messageId- Message identifier; unique for the chat to which the sponsored message belongs among both ordinary and sponsored messages.sponsorChatId- Chat identifier.link- An internal link to be opened when the sponsored message is clicked; may be null. If null, the sponsor chat needs to be opened instead.content- Content of the message. Currently, can be only of the type messageText.
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-
-