pub struct SendMessage {
pub chat_id: ChatId,
pub text: String,
pub parse_mode: Option<ParseMode>,
}Expand description
Use this method to send text messages. On success, the sent Message is returned.
Fields§
§chat_id: ChatIdUnique identifier for the target chat or username of the target channel (in the format @channelusername)
text: StringText of the message to be sent, 1-4096 characters after entities parsing
parse_mode: Option<ParseMode>Mode for parsing entities in the message text. See formatting options for more details.
Trait Implementations§
Source§impl Call for SendMessage
impl Call for SendMessage
Source§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 PartialEq for SendMessage
impl PartialEq for SendMessage
Source§impl Serialize for SendMessage
impl Serialize for SendMessage
impl StructuralPartialEq 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