pub struct Message {Show 47 fields
pub out: bool,
pub mentioned: bool,
pub media_unread: bool,
pub silent: bool,
pub post: bool,
pub from_scheduled: bool,
pub legacy: bool,
pub edit_hide: bool,
pub pinned: bool,
pub noforwards: bool,
pub invert_media: bool,
pub offline: bool,
pub video_processing_pending: bool,
pub paid_suggested_post_stars: bool,
pub paid_suggested_post_ton: bool,
pub id: i32,
pub from_id: Option<Peer>,
pub from_boosts_applied: Option<i32>,
pub from_rank: Option<String>,
pub peer_id: Peer,
pub saved_peer_id: Option<Peer>,
pub fwd_from: Option<MessageFwdHeader>,
pub via_bot_id: Option<i64>,
pub via_business_bot_id: Option<i64>,
pub reply_to: Option<MessageReplyHeader>,
pub date: i32,
pub message: String,
pub media: Option<MessageMedia>,
pub reply_markup: Option<ReplyMarkup>,
pub entities: Option<Vec<MessageEntity>>,
pub views: Option<i32>,
pub forwards: Option<i32>,
pub replies: Option<MessageReplies>,
pub edit_date: Option<i32>,
pub post_author: Option<String>,
pub grouped_id: Option<i64>,
pub reactions: Option<MessageReactions>,
pub restriction_reason: Option<Vec<RestrictionReason>>,
pub ttl_period: Option<i32>,
pub quick_reply_shortcut_id: Option<i32>,
pub effect: Option<i64>,
pub factcheck: Option<FactCheck>,
pub report_delivery_until_date: Option<i32>,
pub paid_message_stars: Option<i64>,
pub suggested_post: Option<SuggestedPost>,
pub schedule_repeat_period: Option<i32>,
pub summary_from_language: Option<String>,
}Expand description
Generated from:
message#3ae56482 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true post:flags.14?true from_scheduled:flags.18?true legacy:flags.19?true edit_hide:flags.21?true pinned:flags.24?true noforwards:flags.26?true invert_media:flags.27?true flags2:# offline:flags2.1?true video_processing_pending:flags2.4?true paid_suggested_post_stars:flags2.8?true paid_suggested_post_ton:flags2.9?true id:int from_id:flags.8?Peer from_boosts_applied:flags.29?int from_rank:flags2.12?string peer_id:Peer saved_peer_id:flags.28?Peer fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?long via_business_bot_id:flags2.0?long reply_to:flags.3?MessageReplyHeader date:int message:string media:flags.9?MessageMedia reply_markup:flags.6?ReplyMarkup entities:flags.7?Vector<MessageEntity> views:flags.10?int forwards:flags.10?int replies:flags.23?MessageReplies edit_date:flags.15?int post_author:flags.16?string grouped_id:flags.17?long reactions:flags.20?MessageReactions restriction_reason:flags.22?Vector<RestrictionReason> ttl_period:flags.25?int quick_reply_shortcut_id:flags.30?int effect:flags2.2?long factcheck:flags2.3?FactCheck report_delivery_until_date:flags2.5?int paid_message_stars:flags2.6?long suggested_post:flags2.7?SuggestedPost schedule_repeat_period:flags2.10?int summary_from_language:flags2.11?string = MessageFields§
§out: bool§mentioned: bool§media_unread: bool§silent: bool§post: bool§from_scheduled: bool§legacy: bool§edit_hide: bool§pinned: bool§noforwards: bool§invert_media: bool§offline: bool§video_processing_pending: bool§paid_suggested_post_stars: bool§paid_suggested_post_ton: bool§id: i32§from_id: Option<Peer>§from_boosts_applied: Option<i32>§from_rank: Option<String>§peer_id: Peer§saved_peer_id: Option<Peer>§fwd_from: Option<MessageFwdHeader>§via_bot_id: Option<i64>§via_business_bot_id: Option<i64>§reply_to: Option<MessageReplyHeader>§date: i32§message: String§media: Option<MessageMedia>§reply_markup: Option<ReplyMarkup>§entities: Option<Vec<MessageEntity>>§views: Option<i32>§forwards: Option<i32>§replies: Option<MessageReplies>§edit_date: Option<i32>§grouped_id: Option<i64>§reactions: Option<MessageReactions>§restriction_reason: Option<Vec<RestrictionReason>>§ttl_period: Option<i32>§quick_reply_shortcut_id: Option<i32>§effect: Option<i64>§factcheck: Option<FactCheck>§report_delivery_until_date: Option<i32>§paid_message_stars: Option<i64>§suggested_post: Option<SuggestedPost>§schedule_repeat_period: Option<i32>§summary_from_language: Option<String>Trait Implementations§
Source§impl Deserializable for Message
impl Deserializable for Message
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 Message
impl Identifiable for Message
Source§const CONSTRUCTOR_ID: u32 = 0x3ae56482
const CONSTRUCTOR_ID: u32 = 0x3ae56482
The constructor ID as specified in the TL schema.
Source§impl Serializable for Message
impl Serializable for Message
impl StructuralPartialEq for Message
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnsafeUnpin for Message
impl UnwindSafe for Message
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