conogram/entities/bot_command_scope_chat_member.rs
1use serde::{Deserialize, Serialize};
2
3use crate::entities::misc::chat_id::ChatId;
4
5/// Represents the [scope](https://core.telegram.org/bots/api/#botcommandscope) of bot commands, covering a specific member of a group or supergroup chat.
6///
7/// API Reference: [link](https://core.telegram.org/bots/api/#botcommandscopechatmember)
8#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
9pub struct BotCommandScopeChatMember {
10 /// Unique identifier for the target chat or username of the target supergroup (in the format `@supergroupusername`)
11 pub chat_id: ChatId,
12
13 /// Unique identifier of the target user
14 pub user_id: i64,
15}
16
17// Divider: all content below this line will be preserved after code regen