pub struct SponsoredMessage {
pub message_id: i64,
pub is_recommended: bool,
pub can_be_reported: bool,
pub content: MessageContent,
pub sponsor: MessageSponsor,
pub title: String,
pub button_text: String,
pub accent_color_id: i32,
pub background_custom_emoji_id: i64,
pub additional_info: String,
}
Expand description
Describes a sponsored message
Fields§
§message_id: i64
Message identifier; unique for the chat to which the sponsored message belongs among both ordinary and sponsored messages
is_recommended: bool
True, if the message needs to be labeled as “recommended” instead of “sponsored”
can_be_reported: bool
True, if the message can be reported to Telegram moderators through reportChatSponsoredMessage
content: MessageContent
Content of the message. Currently, can be only of the type messageText
sponsor: MessageSponsor
Information about the sponsor of the message
title: String
Title of the sponsored message
Text for the message action button
accent_color_id: i32
Identifier of the accent color for title, button text and message background
background_custom_emoji_id: i64
Identifier of a custom emoji to be shown on the message background; 0 if none
additional_info: String
If non-empty, additional information about the sponsored message to be shown along with the message
Trait Implementations§
Source§impl Clone for SponsoredMessage
impl Clone for SponsoredMessage
Source§fn clone(&self) -> SponsoredMessage
fn clone(&self) -> SponsoredMessage
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more