pub struct SendMessage {
pub chat_id: i64,
pub reply_to_message_id: i64,
pub disable_notification: bool,
pub from_background: bool,
pub reply_markup: Option<ReplyMarkup>,
pub input_message_content: InputMessageContent,
}
Expand description
Sends a message. Returns the sent message
Fields§
§chat_id: i64
Target chat
reply_to_message_id: i64
Identifier of the message to reply to or 0
disable_notification: bool
Pass true to disable notification for the message. Not supported in secret chats
from_background: bool
Pass true if the message is sent from the background
reply_markup: Option<ReplyMarkup>
Markup for replying to the message; for bots only
input_message_content: InputMessageContent
The content of the message to be sent
Trait Implementations§
Source§impl Clone for SendMessage
impl Clone for SendMessage
Source§fn clone(&self) -> SendMessage
fn clone(&self) -> SendMessage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SendMessage
impl Debug for SendMessage
Source§impl<'de> Deserialize<'de> for SendMessage
impl<'de> Deserialize<'de> for SendMessage
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Method for SendMessage
impl Method for SendMessage
Auto Trait Implementations§
impl Freeze for SendMessage
impl RefUnwindSafe for SendMessage
impl Send for SendMessage
impl Sync for SendMessage
impl Unpin for SendMessage
impl UnwindSafe for SendMessage
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