teloxide_core/types/
users_shared.rs

1use serde::{Deserialize, Serialize};
2
3use crate::types::{RequestId, SharedUser};
4
5/// This object contains information about the users whose identifiers were
6/// shared with the bot using a [KeyboardButtonRequestUsers] button.
7///
8/// [KeyboardButtonRequestUsers]: crate::types::KeyboardButtonRequestUsers
9#[derive(Clone, Debug, Eq, Hash, PartialEq, Serialize, Deserialize)]
10pub struct UsersShared {
11    /// Identifier of the request
12    pub request_id: RequestId,
13    /// Identifiers of the shared users
14    pub users: Vec<SharedUser>,
15}