pub struct KeyboardButtonTypeRequestUsers {
pub id: i32,
pub restrict_user_is_bot: bool,
pub user_is_bot: bool,
pub restrict_user_is_premium: bool,
pub user_is_premium: bool,
pub max_quantity: i32,
pub request_name: bool,
pub request_username: bool,
pub request_photo: bool,
}
Expand description
A button that requests users to be shared by the current user; available only in private chats. Use the method shareUsersWithBot to complete the request
Fields§
§id: i32
Unique button identifier
restrict_user_is_bot: bool
True, if the shared users must or must not be bots
user_is_bot: bool
True, if the shared users must be bots; otherwise, the shared users must not be bots. Ignored if restrict_user_is_bot is false
True, if the shared users must or must not be Telegram Premium users
True, if the shared users must be Telegram Premium users; otherwise, the shared users must not be Telegram Premium users. Ignored if restrict_user_is_premium is false
max_quantity: i32
The maximum number of users to share
request_name: bool
Pass true to request name of the users; bots only
request_username: bool
Pass true to request username of the users; bots only
request_photo: bool
Pass true to request photo of the users; bots only
Trait Implementations§
Source§impl Clone for KeyboardButtonTypeRequestUsers
impl Clone for KeyboardButtonTypeRequestUsers
Source§fn clone(&self) -> KeyboardButtonTypeRequestUsers
fn clone(&self) -> KeyboardButtonTypeRequestUsers
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Default for KeyboardButtonTypeRequestUsers
impl Default for KeyboardButtonTypeRequestUsers
Source§fn default() -> KeyboardButtonTypeRequestUsers
fn default() -> KeyboardButtonTypeRequestUsers
Source§impl<'de> Deserialize<'de> for KeyboardButtonTypeRequestUsers
impl<'de> Deserialize<'de> for KeyboardButtonTypeRequestUsers
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for KeyboardButtonTypeRequestUsers
impl PartialEq for KeyboardButtonTypeRequestUsers
Source§fn eq(&self, other: &KeyboardButtonTypeRequestUsers) -> bool
fn eq(&self, other: &KeyboardButtonTypeRequestUsers) -> bool
self
and other
values to be equal, and is used by ==
.