Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/grammy_types/mod.ts>Chat.SupergroupGetChat

Type declarations of the Telegram Bot API.
Go to Latest
interface Chat.SupergroupGetChat
implements SupergroupChat, GetChat, NonGroupGetChat, NonPrivateGetChat, MultiUserGetChat, LargeGetChat
import { type Chat } from "https://deno.land/x/grammy_types@v3.4.6/mod.ts";
const { SupergroupGetChat } = Chat;

Internal type representing supergroup chats returned from getChat.

Properties

optional
join_to_send_messages: true

True, if users need to join the supergroup before they can send messages. Returned only in getChat.

optional
join_by_request: true

True, if all users directly joining the supergroup need to be approved by supergroup administrators. Returned only in getChat.

optional
slow_mode_delay: number

For supergroups, the minimum allowed delay between consecutive messages sent by each unpriviledged user; in seconds. Returned only in getChat.

optional
has_visible_history: boolean

True, if new chat members will have access to old messages; available only to chat administrators. Returned only in getChat.

optional
has_aggressive_anti_spam_enabled: true

True, if aggressive anti-spam checks are enabled in the supergroup. The field is only available to chat administrators. Returned only in getChat.

optional
sticker_set_name: string

For supergroups, name of group sticker set. Returned only in getChat.

optional
location: ChatLocation

For supergroups, the location to which the supergroup is connected. Returned only in getChat.