1 2 3 4 5 6 7 8 9 10 11 12 13
use super::ChatType; use serde::Deserialize; /// Telegram chat referenced by a message or update. #[derive(Debug, Deserialize)] pub struct Chat { /// Unique Telegram chat identifier. pub id: i64, /// Kind of chat. #[serde(rename = "type")] pub chat_type: ChatType, }