pub struct SendMessageDraft { /* private fields */ }Expand description
Builder for the sendMessageDraft method.
Streams a partial message to the user while it is being generated (Bot API 9.5+).
Implementations§
Source§impl SendMessageDraft
impl SendMessageDraft
Sourcepub fn parse_mode(self, m: ParseMode) -> Self
pub fn parse_mode(self, m: ParseMode) -> Self
Sets the text parse mode (MarkdownV2, HTML, or Markdown).
Sourcepub fn entities(self, e: Vec<MessageEntity>) -> Self
pub fn entities(self, e: Vec<MessageEntity>) -> Self
Sets custom message entities instead of using a parse mode.
Sourcepub fn clear_text(self) -> Self
pub fn clear_text(self) -> Self
Sends the draft with no text at all, which the API permits.
Sourcepub fn message_thread_id(self, v: i64) -> Self
pub fn message_thread_id(self, v: i64) -> Self
Forum topic thread ID.
Trait Implementations§
Source§impl IntoFuture for SendMessageDraft
impl IntoFuture for SendMessageDraft
Source§type IntoFuture = Pin<Box<dyn Future<Output = <SendMessageDraft as IntoFuture>::Output> + Send>>
type IntoFuture = Pin<Box<dyn Future<Output = <SendMessageDraft 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 SendMessageDraft
impl !UnwindSafe for SendMessageDraft
impl Freeze for SendMessageDraft
impl Send for SendMessageDraft
impl Sync for SendMessageDraft
impl Unpin for SendMessageDraft
impl UnsafeUnpin for SendMessageDraft
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