pub struct SendMessage {
pub peer: InputPeer,
pub receiver_id: InputUser,
pub query_id: Option<i64>,
pub message: String,
pub entities: Option<Vec<MessageEntity>>,
pub media: Option<InputMedia>,
pub reply_markup: Option<ReplyMarkup>,
pub rich_message: Option<InputRichMessage>,
pub random_id: i64,
pub reply_to: Option<InputReplyTo>,
}Expand description
Generated from:
ephemeral.sendMessage#68cbd09f flags:# peer:InputPeer receiver_id:InputUser query_id:flags.0?long message:string entities:flags.1?Vector<MessageEntity> media:flags.2?InputMedia reply_markup:flags.3?ReplyMarkup rich_message:flags.4?InputRichMessage random_id:long reply_to:flags.5?InputReplyTo = UpdatesFields§
§peer: InputPeer§receiver_id: InputUser§query_id: Option<i64>§message: String§entities: Option<Vec<MessageEntity>>§media: Option<InputMedia>§reply_markup: Option<ReplyMarkup>§rich_message: Option<InputRichMessage>§random_id: i64§reply_to: Option<InputReplyTo>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 (const: unstable) · 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 Deserializable for SendMessage
impl Deserializable for SendMessage
Source§fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
Read
Self from buf, advancing its position.Source§fn from_bytes(bytes: &[u8]) -> Result<Self>
fn from_bytes(bytes: &[u8]) -> Result<Self>
Convenience: deserialize from a byte slice.
Source§impl Identifiable for SendMessage
impl Identifiable for SendMessage
Source§const CONSTRUCTOR_ID: u32 = 0x68cbd09f
const CONSTRUCTOR_ID: u32 = 0x68cbd09f
The constructor ID as specified in the TL schema.
Source§impl PartialEq for SendMessage
impl PartialEq for SendMessage
Source§impl RemoteCall for SendMessage
impl RemoteCall for SendMessage
Source§impl Serializable for SendMessage
impl Serializable 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 UnsafeUnpin 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