teloxide/src/types/me.rs
Waffle 393f6ee7a4 Cleanup setters in types::*
- Remove useless setters for types which are only returned from telegam
- Add `const` on setters (where possible)
- Make `Poll::{open_period,close_date}` public
2021-01-26 15:35:08 +03:00

22 lines
621 B
Rust

use crate::types::User;
use serde::{Deserialize, Serialize};
/// Returned only in [`GetMe`].
///
/// [`GetMe`]: crate::payloads::GetMe
#[derive(Clone, Debug, Eq, Hash, PartialEq, Serialize, Deserialize)]
pub struct Me {
#[serde(flatten)]
pub user: User,
/// `true`, if the bot can be invited to groups.
pub can_join_groups: bool,
/// `true`, if [privacy mode] is disabled for the bot.
///
/// [privacy mode]: https://core.telegram.org/bots#privacy-mode
pub can_read_all_group_messages: bool,
/// `true`, if the bot supports inline queries.
pub supports_inline_queries: bool,
}