[−][src]Struct tg_botapi::types::Message
Fields
message_id: i64
from: Option<User>
date: i64
chat: Chat
forward_from: Option<User>
forward_from_chat: Option<Chat>
forward_from_message_id: Option<i64>
forward_signature: Option<String>
forward_date: Option<i64>
reply_to_message: Option<Box<Message>>
edit_date: Option<i64>
text: Option<String>
entities: Option<Vec<MessageEntity>>
audio: Option<Audio>
document: Option<Document>
animation: Option<Animation>
game: Option<Game>
photo: Option<Vec<PhotoSize>>
sticker: Option<Sticker>
video: Option<Video>
voice: Option<Voice>
video_note: Option<VideoNote>
contact: Option<Contact>
location: Option<Location>
venue: Option<Venue>
new_chat_members: Option<Vec<User>>
left_chat_member: Option<User>
new_chat_title: Option<String>
new_chat_photo: Option<Vec<PhotoSize>>
delete_chat_photo: Option<bool>
group_chat_created: Option<bool>
supergroup_chat_created: Option<bool>
channel_chat_created: Option<bool>
migrate_to_chat_id: Option<i64>
migrate_from_chat_id: Option<i64>
pinned_message: Option<Box<Message>>
invoice: Option<Invoice>
successful_payment: Option<SuccessfulPayment>
connected_website: Option<String>
passport_data: Option<PassportData>
Methods
impl Message
[src]
pub fn reply(&self, text: impl Into<String>) -> SendMessage
[src]
pub fn respond(&self, text: impl Into<String>) -> SendMessage
[src]
pub fn reply_photo(&self, photo: InputFile) -> SendPhoto
[src]
pub fn respond_photo(&self, photo: InputFile) -> SendPhoto
[src]
pub fn get_text(&self) -> Option<&String>
[src]
Trait Implementations
impl Clone for Message
[src]
impl Debug 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<'de> Deserialize<'de> for Message
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
impl RefUnwindSafe for Message
Blanket Implementations
impl<'a, T> Captures<'a> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,