pub struct InputMessagePaidMedia {
pub star_count: i64,
pub paid_media: Vec<InputPaidMedia>,
pub caption: Option<FormattedText>,
pub show_caption_above_media: bool,
pub payload: String,
}Expand description
A message with paid media; can be used only in channel chats with supergroupFullInfo.has_paid_media_allowed
Fields§
§star_count: i64The number of Telegram Stars that must be paid to see the media; 1-getOption(“paid_media_message_star_count_max”)
paid_media: Vec<InputPaidMedia>The content of the paid media
caption: Option<FormattedText>Message caption; pass null to use an empty caption; 0-getOption(“message_caption_length_max”) characters
show_caption_above_media: boolTrue, if the caption must be shown above the media; otherwise, the caption must be shown below the media; not supported in secret chats
payload: StringBot-provided data for the paid media; bots only
Trait Implementations§
Source§impl Clone for InputMessagePaidMedia
impl Clone for InputMessagePaidMedia
Source§fn clone(&self) -> InputMessagePaidMedia
fn clone(&self) -> InputMessagePaidMedia
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InputMessagePaidMedia
impl Debug for InputMessagePaidMedia
Source§impl Default for InputMessagePaidMedia
impl Default for InputMessagePaidMedia
Source§fn default() -> InputMessagePaidMedia
fn default() -> InputMessagePaidMedia
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InputMessagePaidMedia
impl<'de> Deserialize<'de> for InputMessagePaidMedia
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for InputMessagePaidMedia
impl PartialEq for InputMessagePaidMedia
Source§impl Serialize for InputMessagePaidMedia
impl Serialize for InputMessagePaidMedia
impl StructuralPartialEq for InputMessagePaidMedia
Auto Trait Implementations§
impl Freeze for InputMessagePaidMedia
impl RefUnwindSafe for InputMessagePaidMedia
impl Send for InputMessagePaidMedia
impl Sync for InputMessagePaidMedia
impl Unpin for InputMessagePaidMedia
impl UnsafeUnpin for InputMessagePaidMedia
impl UnwindSafe for InputMessagePaidMedia
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more