Struct rust_tdlib::types::Message
source · pub struct Message { /* private fields */ }
Expand description
Describes a message
Implementations§
source§impl Message
impl Message
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> MessageBuilder
pub fn id(&self) -> i64
pub fn sender_id(&self) -> &MessageSender
pub fn chat_id(&self) -> i64
pub fn sending_state(&self) -> &Option<MessageSendingState>
pub fn scheduling_state(&self) -> &Option<MessageSchedulingState>
pub fn is_outgoing(&self) -> bool
pub fn is_pinned(&self) -> bool
pub fn can_be_edited(&self) -> bool
pub fn can_be_forwarded(&self) -> bool
pub fn can_be_saved(&self) -> bool
pub fn can_be_deleted_only_for_self(&self) -> bool
pub fn can_be_deleted_for_all_users(&self) -> bool
pub fn can_get_statistics(&self) -> bool
pub fn can_get_message_thread(&self) -> bool
pub fn can_get_viewers(&self) -> bool
pub fn can_get_media_timestamp_links(&self) -> bool
pub fn has_timestamped_media(&self) -> bool
pub fn is_channel_post(&self) -> bool
pub fn contains_unread_mention(&self) -> bool
pub fn date(&self) -> i32
pub fn edit_date(&self) -> i32
pub fn forward_info(&self) -> &Option<MessageForwardInfo>
pub fn interaction_info(&self) -> &Option<MessageInteractionInfo>
pub fn reply_in_chat_id(&self) -> i64
pub fn reply_to_message_id(&self) -> i64
pub fn message_thread_id(&self) -> i64
pub fn ttl(&self) -> i32
pub fn ttl_expires_in(&self) -> f32
pub fn via_bot_user_id(&self) -> i64
pub fn media_album_id(&self) -> i64
pub fn restriction_reason(&self) -> &String
pub fn content(&self) -> &MessageContent
pub fn reply_markup(&self) -> &Option<ReplyMarkup>
Trait Implementations§
source§impl<'de> Deserialize<'de> for Message
impl<'de> Deserialize<'de> for Message
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