pub struct PostStory { /* private fields */ }Expand description
Builder for the postStory method.
Posts a story on behalf of a managed business account.
Requires the can_manage_stories business bot right.
active_period must be one of 21600, 43200, 86400, or 172800 seconds.
Implementations§
Source§impl PostStory
impl PostStory
Sourcepub fn caption(self, c: impl Into<String>) -> Self
pub fn caption(self, c: impl Into<String>) -> Self
Sets the story caption (0–2048 characters after entities parsing).
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 caption_entities(self, e: Vec<MessageEntity>) -> Self
pub fn caption_entities(self, e: Vec<MessageEntity>) -> Self
Sets special entities in the caption; alternative to parse_mode.
Sourcepub fn post_to_chat_page(self, v: bool) -> Self
pub fn post_to_chat_page(self, v: bool) -> Self
Pass true to keep the story accessible after it expires.
Sourcepub fn protect_content(self, v: bool) -> Self
pub fn protect_content(self, v: bool) -> Self
Pass true to protect the story content from forwarding and screenshotting.
Trait Implementations§
Source§impl IntoFuture for PostStory
impl IntoFuture for PostStory
Source§type IntoFuture = Pin<Box<dyn Future<Output = <PostStory as IntoFuture>::Output> + Send>>
type IntoFuture = Pin<Box<dyn Future<Output = <PostStory 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 !RefUnwindSafe for PostStory
impl !UnwindSafe for PostStory
impl Freeze for PostStory
impl Send for PostStory
impl Sync for PostStory
impl Unpin for PostStory
impl UnsafeUnpin for PostStory
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