KeyboardButtonTypeRequestChat¶
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
KeyboardButtonTypeRequestChat(
id: int32,
chat_is_channel: Bool,
restrict_chat_is_forum: Bool,
chat_is_forum: Bool,
restrict_chat_has_username: Bool,
chat_has_username: Bool,
chat_is_created: Bool,
user_administrator_rights: ChatAdministratorRights,
bot_administrator_rights: ChatAdministratorRights,
bot_is_member: Bool,
request_title: Bool,
request_username: Bool,
request_photo: Bool
) → KeyboardButtonType
id¶
int32
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¶
Expected user administrator rights in the chat; may be null if they aren't restricted
bot_administrator_rights¶
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