Skip to main content
Extremely Popular
Go to Latest
interface KeyboardButtonRequestChat
import { type KeyboardButtonRequestChat } from "https://deno.land/x/grammy@v1.14.0/types.deno.ts";

This object defines the criteria used to request a suitable chat. The identifier of the selected chat will be shared with the bot when the corresponding button is pressed.

Properties

request_id: number

Signed 32-bit identifier of the request

chat_is_channel: boolean

Pass True to request a channel chat, pass False to request a group or a supergroup chat.

optional
chat_is_forum: boolean

Pass True to request a forum supergroup, pass False to request a non-forum chat. If not specified, no additional restrictions are applied.

optional
chat_has_username: boolean

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.

optional
chat_is_created: boolean

Pass True to request a chat owned by the user. Otherwise, no additional restrictions are applied.

optional
user_administrator_rights: ChatAdministratorRights

A JSON-serialized object listing the required administrator rights of the user in the chat. If not specified, no additional restrictions are applied.

optional
bot_administrator_rights: ChatAdministratorRights

A JSON-serialized object listing the required administrator rights of the bot in the chat. The rights must be a subset of user_administrator_rights. If not specified, no additional restrictions are applied.

optional
bot_is_member: boolean

Pass True to request a chat with the bot as a member. Otherwise, no additional restrictions are applied.