content
Content of the message. Currently, can be only of the type messageText.
int
long
boolean
static final int
boolean
long
SponsoredMessage(long messageId,
boolean isRecommended,
boolean canBeReported,
TdApi.MessageContent content,
TdApi.MessageSponsor sponsor,
String title,
String buttonText,
int accentColorId,
long backgroundCustomEmojiId,
String additionalInfo)
int
toString
messageId
- Message identifier; unique for the chat to which the sponsored message belongs among both ordinary and sponsored messages.isRecommended
- True, if the message needs to be labeled as "recommended" instead of "sponsored".canBeReported
- True, if the message can be reported to Telegram moderators through reportChatSponsoredMessage.content
- Content of the message. Currently, can be only of the type messageText.sponsor
- Information about the sponsor of the message.title
- Title of the sponsored message.buttonText
- Text for the message action button.accentColorId
- Identifier of the accent color for title, button text and message background.backgroundCustomEmojiId
- Identifier of a custom emoji to be shown on the message background; 0 if none.additionalInfo
- If non-empty, additional information about the sponsored message to be shown along with the message.TdApi.Object
getConstructor
in class TdApi.Object