public static class TdApi.SponsoredMessage extends TdApi.Object
Modifier and Type | Field and Description |
---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
TdApi.MessageContent |
content
Content of the message.
|
TdApi.InternalLinkType |
link
An internal link to be opened when the sponsored message is clicked; may be null.
|
long |
messageId
Message identifier; unique for the chat to which the sponsored message belongs among both ordinary and sponsored messages.
|
long |
sponsorChatId
Chat identifier.
|
Constructor and Description |
---|
SponsoredMessage()
Describes a sponsored message.
|
SponsoredMessage(long messageId,
long sponsorChatId,
TdApi.InternalLinkType link,
TdApi.MessageContent content)
Describes a sponsored message.
|
Modifier and Type | Method and Description |
---|---|
int |
getConstructor() |
toString
public long messageId
public long sponsorChatId
@Nullable public TdApi.InternalLinkType link
public TdApi.MessageContent content
public static final int CONSTRUCTOR
public SponsoredMessage()
public SponsoredMessage(long messageId, long sponsorChatId, TdApi.InternalLinkType link, TdApi.MessageContent content)
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.public int getConstructor()
getConstructor
in class TdApi.Object