pub struct KeyboardButtonTypeRequestChat {Show 13 fields
pub id: i32,
pub chat_is_channel: bool,
pub restrict_chat_is_forum: bool,
pub chat_is_forum: bool,
pub restrict_chat_has_username: bool,
pub chat_has_username: bool,
pub chat_is_created: bool,
pub user_administrator_rights: Option<ChatAdministratorRights>,
pub bot_administrator_rights: Option<ChatAdministratorRights>,
pub bot_is_member: bool,
pub request_title: bool,
pub request_username: bool,
pub request_photo: bool,
}
Expand description
A button that requests a chat to be shared by the current user; available only in private chats. Use the method shareChatWithBot to complete the request
Fields§
§id: i32
Unique button identifier
chat_is_channel: bool
True, if the chat must be a channel; otherwise, a basic group or a supergroup chat is shared
restrict_chat_is_forum: bool
True, if the chat must or must not be a forum supergroup
chat_is_forum: bool
True, if the chat must be a forum supergroup; otherwise, the chat must not be a forum supergroup. Ignored if restrict_chat_is_forum is false
restrict_chat_has_username: bool
True, if the chat must or must not have a username
chat_has_username: bool
True, if the chat must have a username; otherwise, the chat must not have a username. Ignored if restrict_chat_has_username is false
chat_is_created: bool
True, if the chat must be created by the current user
user_administrator_rights: Option<ChatAdministratorRights>
Expected user administrator rights in the chat; may be null if they aren’t restricted
bot_administrator_rights: Option<ChatAdministratorRights>
Expected bot administrator rights in the chat; may be null if they aren’t restricted
bot_is_member: bool
True, if the bot must be a member of the chat; for basic group and supergroup chats only
request_title: bool
Pass true to request title of the chat; bots only
request_username: bool
Pass true to request username of the chat; bots only
request_photo: bool
Pass true to request photo of the chat; bots only
Trait Implementations§
Source§impl Clone for KeyboardButtonTypeRequestChat
impl Clone for KeyboardButtonTypeRequestChat
Source§fn clone(&self) -> KeyboardButtonTypeRequestChat
fn clone(&self) -> KeyboardButtonTypeRequestChat
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Default for KeyboardButtonTypeRequestChat
impl Default for KeyboardButtonTypeRequestChat
Source§fn default() -> KeyboardButtonTypeRequestChat
fn default() -> KeyboardButtonTypeRequestChat
Source§impl<'de> Deserialize<'de> for KeyboardButtonTypeRequestChat
impl<'de> Deserialize<'de> for KeyboardButtonTypeRequestChat
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 KeyboardButtonTypeRequestChat
impl PartialEq for KeyboardButtonTypeRequestChat
Source§fn eq(&self, other: &KeyboardButtonTypeRequestChat) -> bool
fn eq(&self, other: &KeyboardButtonTypeRequestChat) -> bool
self
and other
values to be equal, and is used by ==
.