Struct telebot::objects::Message
[−]
[src]
pub struct Message { pub message_id: Integer, pub from: Option<User>, pub date: Integer, pub chat: Chat, pub forward_from: Option<User>, pub forward_from_chat: Option<User>, pub forward_from_message_id: Option<Integer>, pub forward_date: Option<Integer>, pub reply_to_message: Option<Box<Message>>, pub edit_date: Option<Integer>, pub text: Option<String>, pub entities: Option<Vec<MessageEntity>>, pub audio: Option<Audio>, pub document: Option<Document>, pub game: Option<NotImplemented>, pub photo: Option<Vec<PhotoSize>>, pub sticker: Option<Sticker>, pub video: Option<Video>, pub voice: Option<Voice>, pub caption: Option<String>, pub contact: Option<Contact>, pub location: Option<Location>, pub venue: Option<Venue>, pub new_chat_member: Option<User>, pub left_chat_member: Option<User>, pub new_chat_title: Option<String>, pub new_chat_photo: Option<Vec<PhotoSize>>, pub delete_chat_photo: Option<bool>, pub group_chat_created: Option<bool>, pub supergroup_chat_created: Option<bool>, pub channel_chat_created: Option<bool>, pub migrate_to_chat_id: Option<Integer>, pub migrate_from_chat_id: Option<Integer>, pub pinned_message: Option<Box<Message>>, }
This object represents a message.
Fields
message_id: Integer
from: Option<User>
date: Integer
chat: Chat
forward_from: Option<User>
forward_from_chat: Option<User>
forward_from_message_id: Option<Integer>
forward_date: Option<Integer>
reply_to_message: Option<Box<Message>>
edit_date: Option<Integer>
text: Option<String>
entities: Option<Vec<MessageEntity>>
audio: Option<Audio>
document: Option<Document>
game: Option<NotImplemented>
photo: Option<Vec<PhotoSize>>
sticker: Option<Sticker>
video: Option<Video>
voice: Option<Voice>
contact: Option<Contact>
location: Option<Location>
venue: Option<Venue>
new_chat_member: Option<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<Integer>
migrate_from_chat_id: Option<Integer>
pinned_message: Option<Box<Message>>