pub struct ForwardMessage { /* private fields */ }Expand description
Builder for the forwardMessage method.
Implementations§
Source§impl ForwardMessage
impl ForwardMessage
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 video_start_timestamp(self, ts: i64) -> Self
pub fn video_start_timestamp(self, ts: i64) -> Self
New start timestamp for a forwarded video.
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 message_effect_id(self, v: impl Into<String>) -> Self
pub fn message_effect_id(self, v: impl Into<String>) -> Self
Attaches a message effect (animated emoji reaction) to the message.
Sourcepub fn suggested_post_parameters(self, v: SuggestedPostParameters) -> Self
pub fn suggested_post_parameters(self, v: SuggestedPostParameters) -> Self
Suggested post parameters for channel direct messages chats.
Trait Implementations§
Source§impl IntoFuture for ForwardMessage
impl IntoFuture for ForwardMessage
Source§type IntoFuture = Pin<Box<dyn Future<Output = <ForwardMessage as IntoFuture>::Output> + Send>>
type IntoFuture = Pin<Box<dyn Future<Output = <ForwardMessage 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 ForwardMessage
impl !UnwindSafe for ForwardMessage
impl Freeze for ForwardMessage
impl Send for ForwardMessage
impl Sync for ForwardMessage
impl Unpin for ForwardMessage
impl UnsafeUnpin for ForwardMessage
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