Skip to main content

tbot/types/user/
me.rs

1use super::User;
2use serde::Deserialize;
3
4/// Represents a Bot object that returned in [`GetMe`] method.
5///
6/// [`GetMe`]: ../../methods/struct.GetMe.html
7#[derive(Debug, PartialEq, Eq, Clone, Hash, Deserialize)]
8#[non_exhaustive]
9pub struct Me {
10    /// The main information about the bot.
11    #[serde(flatten)]
12    pub user: User,
13    /// `true` if the bot can join groups.
14    pub can_join_groups: bool,
15    /// `true` if the bot can read all messages in groups.
16    pub can_read_all_group_messages: bool,
17    /// `true` if the bot supports inline mode.
18    pub supports_inline_queries: bool,
19}