1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use super::User;
use serde::Deserialize;

/// Represents a Bot object returned from the [`GetMe`] method.
///
/// [`GetMe`]: crate::methods::GetMe
#[derive(Debug, PartialEq, Eq, Clone, Hash, Deserialize)]
#[non_exhaustive]
pub struct Me {
    /// The main information about the bot.
    #[serde(flatten)]
    pub user: User,
    /// `true` if the bot can join groups.
    pub can_join_groups: bool,
    /// `true` if the bot can read all messages in groups.
    pub can_read_all_group_messages: bool,
    /// `true` if the bot supports inline mode.
    pub supports_inline_queries: bool,
}