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.
|
long |
sponsorChatId |
Chat identifier.
|
String |
startParameter |
Parameter for the bot start message
if the sponsored chat is a chat with a bot.
|
Constructor | Description |
---|---|
SponsoredMessage() |
Describes a sponsored message.
|
SponsoredMessage(int id,
long sponsorChatId,
String startParameter,
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.startParameter
- String Parameter for the bot start message
if the sponsored chat is a chat with a bot.content
- MessageContent Content of the message.IOException
getConstructor
in class TdApi.Object
serialize
in class TdApi.Object
IOException