pub struct SendPaidMedia { /* private fields */ }Expand description
Builder for the sendPaidMedia method.
Sends paid media that users must pay Telegram Stars to view (up to 10 items).
The media parameter accepts Vec<serde_json::Value> until the InputPaidMedia
enum is defined in Priority 4.
Implementations§
Source§impl SendPaidMedia
impl SendPaidMedia
Sourcepub fn business_connection_id(self, id: impl Into<String>) -> Self
pub fn business_connection_id(self, id: impl Into<String>) -> Self
Business connection ID for sending on behalf of a business account.
Sourcepub fn payload(self, p: impl Into<String>) -> Self
pub fn payload(self, p: impl Into<String>) -> Self
Bot-defined paid media payload (0–128 bytes); not shown to the user.
Sourcepub fn parse_mode(self, m: ParseMode) -> Self
pub fn parse_mode(self, m: ParseMode) -> Self
Sets the caption parse mode (MarkdownV2, HTML, or Markdown).
Sourcepub fn show_caption_above_media(self, v: bool) -> Self
pub fn show_caption_above_media(self, v: bool) -> Self
Shows the caption above the media instead of below it.
Sourcepub fn disable_notification(self, v: bool) -> Self
pub fn disable_notification(self, v: bool) -> Self
Sends the message silently — the recipient receives no notification sound.
Sourcepub fn protect_content(self, v: bool) -> Self
pub fn protect_content(self, v: bool) -> Self
Protects the message from being forwarded or saved.
Sourcepub fn reply_parameters(self, rp: ReplyParameters) -> Self
pub fn reply_parameters(self, rp: ReplyParameters) -> Self
Reply parameters for this message.
Sourcepub fn reply_markup(self, m: impl Into<ReplyMarkup>) -> Self
pub fn reply_markup(self, m: impl Into<ReplyMarkup>) -> Self
Attaches a reply markup (inline keyboard, reply keyboard, etc.).
Trait Implementations§
Source§impl IntoFuture for SendPaidMedia
impl IntoFuture for SendPaidMedia
Source§type IntoFuture = Pin<Box<dyn Future<Output = <SendPaidMedia as IntoFuture>::Output> + Send>>
type IntoFuture = Pin<Box<dyn Future<Output = <SendPaidMedia as IntoFuture>::Output> + Send>>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl Freeze for SendPaidMedia
impl !RefUnwindSafe for SendPaidMedia
impl Send for SendPaidMedia
impl Sync for SendPaidMedia
impl Unpin for SendPaidMedia
impl UnsafeUnpin for SendPaidMedia
impl !UnwindSafe for SendPaidMedia
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