KeyboardButtonRequestChat¶
- class pyrogram.types.KeyboardButtonRequestChat¶
Contains information about a chat peer type.
- Parameters:
button_id (
int) – Identifier of button.chat_is_channel (
bool) – Pass True to request a channel chat, pass False to request a group or a supergroup chat.chat_is_forum (
bool, optional) – Pass True to request a forum supergroup, pass False to request a non-forum chat. If not specified, no additional restrictions are applied.chat_has_username (
bool, optional) – Pass True to request a supergroup or a channel with a username, pass False to request a chat without a username. If not specified, no additional restrictions are applied.chat_is_created (
bool, optional) – Pass True to request a chat owned by the user. Otherwise, no additional restrictions are applied.bot_is_member (
bool, optional) – Pass True to request a chat with the bot as a member. Otherwise, no additional restrictions are applied.user_administrator_rights (
ChatAdministratorRights, optional) – Privileged actions that an user administrator is able to take.bot_administrator_rights (
ChatAdministratorRights, optional) – Privileged actions that an bot administrator is able to take.request_title (
bool, optional) – Pass True to request the chats’ title If not specified, the title won’t be requested.request_username (
bool, optional) – Pass True to request the chats’ username If not specified, the username won’t be requested.request_photo (
bool, optional) – Pass True to request the chats’ photo If not specified, the photo won’t be requested.