Struct teloxide_core::types::Message [−][src]
This object represents a message.
Fields
id: i32
Unique message identifier inside this chat.
date: i32
Date the message was sent in Unix time.
chat: Chat
Conversation the message belongs to.
via_bot: Option<User>
Bot through which the message was sent.
kind: MessageKind
Implementations
impl Message
[src]
Getters for Message fields from telegram docs.
pub fn from(&self) -> Option<&User>
[src]
pub fn author_signature(&self) -> Option<&str>
[src]
pub fn sender_chat(&self) -> Option<&Chat>
[src]
pub fn chat_id(&self) -> i64
[src]
pub fn forward_from(&self) -> Option<&ForwardedFrom>
[src]
NOTE: this is getter for both forward_from
and
forward_sender_name
pub fn forward_from_chat(&self) -> Option<&Chat>
[src]
pub fn forward_from_message_id(&self) -> Option<&i32>
[src]
pub fn forward_signature(&self) -> Option<&str>
[src]
pub fn forward_date(&self) -> Option<&i32>
[src]
pub fn reply_to_message(&self) -> Option<&Message>
[src]
pub fn edit_date(&self) -> Option<&i32>
[src]
pub fn media_group_id(&self) -> Option<&str>
[src]
pub fn text(&self) -> Option<&str>
[src]
pub fn entities(&self) -> Option<&[MessageEntity]>
[src]
pub fn caption_entities(&self) -> Option<&[MessageEntity]>
[src]
pub fn audio(&self) -> Option<&Audio>
[src]
pub fn document(&self) -> Option<&Document>
[src]
pub fn animation(&self) -> Option<&Animation>
[src]
pub fn game(&self) -> Option<&Game>
[src]
pub fn photo(&self) -> Option<&[PhotoSize]>
[src]
pub fn sticker(&self) -> Option<&Sticker>
[src]
pub fn video(&self) -> Option<&Video>
[src]
pub fn voice(&self) -> Option<&Voice>
[src]
pub fn video_note(&self) -> Option<&VideoNote>
[src]
pub fn caption(&self) -> Option<&str>
[src]
pub fn contact(&self) -> Option<&Contact>
[src]
pub fn location(&self) -> Option<&Location>
[src]
pub fn venue(&self) -> Option<&Venue>
[src]
pub fn poll(&self) -> Option<&Poll>
[src]
pub fn new_chat_members(&self) -> Option<&[User]>
[src]
pub fn left_chat_member(&self) -> Option<&User>
[src]
pub fn new_chat_title(&self) -> Option<&str>
[src]
pub fn new_chat_photo(&self) -> Option<&[PhotoSize]>
[src]
pub fn delete_chat_photo(&self) -> Option<True>
[src]
pub fn group_chat_created(&self) -> Option<True>
[src]
pub fn super_group_chat_created(&self) -> Option<True>
[src]
pub fn channel_chat_created(&self) -> Option<True>
[src]
pub fn migrate_to_chat_id(&self) -> Option<i64>
[src]
pub fn migrate_from_chat_id(&self) -> Option<i64>
[src]
pub fn pinned_message(&self) -> Option<&Message>
[src]
pub fn invoice(&self) -> Option<&Invoice>
[src]
pub fn successful_payment(&self) -> Option<&SuccessfulPayment>
[src]
pub fn connected_website(&self) -> Option<&str>
[src]
pub fn passport_data(&self) -> Option<&PassportData>
[src]
pub fn dice(&self) -> Option<&Dice>
[src]
pub fn proximity_alert_triggered(&self) -> Option<&ProximityAlertTriggered>
[src]
pub fn reply_markup(&self) -> Option<&InlineKeyboardMarkup>
[src]
impl Message
[src]
Trait Implementations
impl Clone for Message
[src]
impl Debug for Message
[src]
impl<'de> Deserialize<'de> for Message
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl PartialEq<Message> for Message
[src]
impl Serialize for Message
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for Message
[src]
Auto Trait Implementations
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,