mirror of
https://github.com/teloxide/teloxide.git
synced 2025-01-24 09:16:12 +01:00
393f6ee7a4
- Remove useless setters for types which are only returned from telegam - Add `const` on setters (where possible) - Make `Poll::{open_period,close_date}` public
22 lines
621 B
Rust
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,
|
|
}
|