content
Content of the message.
public static class TdApi.SponsoredMessage extends TdApi.Object
Modifier and Type | Field | Description |
---|---|---|
static int |
CONSTRUCTOR |
|
TdApi.MessageContent |
content |
Content of the message.
|
int |
id |
Unique sponsored message identifier.
|
TdApi.InternalLinkType |
link |
An internal link to be opened when
the sponsored message is clicked; may
be null.
|
long |
sponsorChatId |
Chat identifier.
|
Constructor | Description |
---|---|
SponsoredMessage() |
Describes a sponsored message.
|
SponsoredMessage(int id,
long sponsorChatId,
TdApi.InternalLinkType link,
TdApi.MessageContent content) |
Describes a sponsored message.
|
SponsoredMessage(DataInput input) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(Object o) |
|
int |
getConstructor() |
|
int |
hashCode() |
|
void |
serialize(DataOutput output) |
serialize, toString
id
- int Unique sponsored message identifier.sponsorChatId
- long Chat identifier.link
- InternalLinkType 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
- MessageContent Content of the message.IOException
getConstructor
in class TdApi.Object
serialize
in class TdApi.Object
IOException