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

x/grammy/types.deno.ts>Chat.PrivateChat

The Telegram Bot Framework.
Very Popular
Latest
interface Chat.PrivateChat
import { type Chat } from "https://deno.land/x/grammy@v1.31.0/types.deno.ts";
const { PrivateChat } = Chat;

Internal type for private chats

Properties

id: number

Unique identifier for this chat.

type: "private"

Type of the chat, can be either “private”, “group”, “supergroup” or “channel”

optional
title: undefined

Title, for supergroups, channels and group chats

optional
username: string

Username, for private chats, supergroups and channels if available

first_name: string

First name of the other party in a private chat

optional
last_name: string

Last name of the other party in a private chat

optional
is_forum: undefined

True, if the supergroup chat is a forum (has topics enabled)