pub struct RepostStory { /* private fields */ }Expand description
Builder for the repostStory method.
Reposts a story from one managed business account to another.
Both accounts must be managed by the same bot, and the story must have been
posted by the bot. Requires the can_manage_stories business bot right on both accounts.
active_period must be one of 21600, 43200, 86400, or 172800 seconds.
Implementations§
Source§impl RepostStory
impl RepostStory
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 RepostStory
impl IntoFuture for RepostStory
Source§type IntoFuture = Pin<Box<dyn Future<Output = <RepostStory as IntoFuture>::Output> + Send>>
type IntoFuture = Pin<Box<dyn Future<Output = <RepostStory 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 RepostStory
impl !UnwindSafe for RepostStory
impl Freeze for RepostStory
impl Send for RepostStory
impl Sync for RepostStory
impl Unpin for RepostStory
impl UnsafeUnpin for RepostStory
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