pub struct EditMessageTextBuilder<'a> { /* private fields */ }Expand description
Builder for the [editMessageText] API method.
Implementations§
Source§impl<'a> EditMessageTextBuilder<'a>
impl<'a> EditMessageTextBuilder<'a>
Sourcepub fn message_id(self, val: i64) -> Self
pub fn message_id(self, val: i64) -> Self
Sets the message_id parameter.
Sourcepub fn inline_message_id(self, val: impl Into<String>) -> Self
pub fn inline_message_id(self, val: impl Into<String>) -> Self
Sets the inline_message_id parameter.
Sourcepub fn parse_mode(self, val: impl Into<String>) -> Self
pub fn parse_mode(self, val: impl Into<String>) -> Self
Sets the parse_mode parameter.
Sourcepub fn entities(self, val: Vec<MessageEntity>) -> Self
pub fn entities(self, val: Vec<MessageEntity>) -> Self
Sets the entities parameter.
Sourcepub fn link_preview_options(self, val: LinkPreviewOptions) -> Self
pub fn link_preview_options(self, val: LinkPreviewOptions) -> Self
Sets the link_preview_options parameter.
Sourcepub fn reply_markup(self, val: Value) -> Self
pub fn reply_markup(self, val: Value) -> Self
Sets the reply_markup parameter.
Sourcepub fn business_connection_id(self, val: impl Into<String>) -> Self
pub fn business_connection_id(self, val: impl Into<String>) -> Self
Sets the business_connection_id parameter.
Sourcepub async fn send(self) -> Result<MessageOrBool>
pub async fn send(self) -> Result<MessageOrBool>
Sends the request to the Telegram Bot API.
Trait Implementations§
Source§impl<'a> IntoFuture for EditMessageTextBuilder<'a>
impl<'a> IntoFuture for EditMessageTextBuilder<'a>
Source§type Output = Result<MessageOrBool, TelegramError>
type Output = Result<MessageOrBool, TelegramError>
The output that the future will produce on completion.
Source§type IntoFuture = Pin<Box<dyn Future<Output = <EditMessageTextBuilder<'a> as IntoFuture>::Output> + Send + 'a>>
type IntoFuture = Pin<Box<dyn Future<Output = <EditMessageTextBuilder<'a> as IntoFuture>::Output> + Send + 'a>>
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<'a> Freeze for EditMessageTextBuilder<'a>
impl<'a> !RefUnwindSafe for EditMessageTextBuilder<'a>
impl<'a> Send for EditMessageTextBuilder<'a>
impl<'a> Sync for EditMessageTextBuilder<'a>
impl<'a> Unpin for EditMessageTextBuilder<'a>
impl<'a> UnsafeUnpin for EditMessageTextBuilder<'a>
impl<'a> !UnwindSafe for EditMessageTextBuilder<'a>
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