telegram_tool/client/incoming_message.rs
1#[derive(Debug, Clone)]
2pub struct IncomingMessage {
3 pub chat_id: i64,
4 pub user_id: Option<i64>,
5 /// Telegram's first name, used only as the initial EME display name.
6 pub first_name: Option<String>,
7 pub is_bot: bool,
8 pub message_id: i32,
9 /// Message ID being replied to, if this is a Telegram reply.
10 pub reply_to_message_id: Option<i32>,
11 pub text: Option<String>,
12}