Skip to main content
Very Popular
Latest
interface Chat.SupergroupGetChat
implements SupergroupChat, GetChat, NonGroupGetChat, NonPrivateGetChat, MultiUserGetChat, LargeGetChat
import { type Chat } from "https://deno.land/x/grammy@v1.22.4/types.deno.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 unprivileged user; in seconds. Returned only in getChat.

optional
unrestrict_boost_count: number

For supergroups, the minimum number of boosts that a non-administrator user needs to add in order to ignore slow mode and chat permissions. 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
can_set_sticker_set: true

True, if the bot can change the group sticker set. Returned only in getChat.

optional
custom_emoji_sticker_set_name: string

For supergroups, the name of the group's custom emoji sticker set. Custom emoji from this set can be used by all users and bots in the group. Returned only in getChat.

optional
location: ChatLocation

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