pub struct AddLocalMessage {
pub chat_id: i64,
pub sender_user_id: i32,
pub reply_to_message_id: i64,
pub disable_notification: bool,
pub input_message_content: InputMessageContent,
}
Expand description
Adds a local message to a chat. The message is persistent across application restarts only if the message database is used. Returns the added message
Fields§
§chat_id: i64
Target chat
sender_user_id: i32
Identifier of the user who will be shown as the sender of the message; may be 0 for channel posts
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
input_message_content: InputMessageContent
The content of the message to be added
Trait Implementations§
Source§impl Clone for AddLocalMessage
impl Clone for AddLocalMessage
Source§fn clone(&self) -> AddLocalMessage
fn clone(&self) -> AddLocalMessage
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 AddLocalMessage
impl Debug for AddLocalMessage
Source§impl<'de> Deserialize<'de> for AddLocalMessage
impl<'de> Deserialize<'de> for AddLocalMessage
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 AddLocalMessage
impl Method for AddLocalMessage
Auto Trait Implementations§
impl Freeze for AddLocalMessage
impl RefUnwindSafe for AddLocalMessage
impl Send for AddLocalMessage
impl Sync for AddLocalMessage
impl Unpin for AddLocalMessage
impl UnwindSafe for AddLocalMessage
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