pub struct ForwardMessages { /* private fields */ }Expand description
Builder for the forwardMessages method.
Forwards 1–100 messages at once, preserving album grouping.
Returns a Vec<MessageId> of the sent messages.
Implementations§
Source§impl ForwardMessages
impl ForwardMessages
Sourcepub fn message_thread_id(self, id: i64) -> Self
pub fn message_thread_id(self, id: i64) -> Self
Forum topic thread ID.
Sourcepub fn direct_messages_topic_id(self, id: i64) -> Self
pub fn direct_messages_topic_id(self, id: i64) -> Self
Identifier of a direct messages chat topic.
Sourcepub fn disable_notification(self, v: bool) -> Self
pub fn disable_notification(self, v: bool) -> Self
Sends the messages silently — recipients receive no notification sound.
Sourcepub fn protect_content(self, v: bool) -> Self
pub fn protect_content(self, v: bool) -> Self
Protects the messages from being forwarded or saved.
Trait Implementations§
Source§impl IntoFuture for ForwardMessages
impl IntoFuture for ForwardMessages
Source§type Output = Result<Vec<MessageId>, Error>
type Output = Result<Vec<MessageId>, Error>
The output that the future will produce on completion.
Source§type IntoFuture = Pin<Box<dyn Future<Output = <ForwardMessages as IntoFuture>::Output> + Send>>
type IntoFuture = Pin<Box<dyn Future<Output = <ForwardMessages 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 ForwardMessages
impl !UnwindSafe for ForwardMessages
impl Freeze for ForwardMessages
impl Send for ForwardMessages
impl Sync for ForwardMessages
impl Unpin for ForwardMessages
impl UnsafeUnpin for ForwardMessages
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