GramIO API Reference / gramio/dist / TelegramChat
Interface: TelegramChat
Defined in: @gramio/types/out/objects.d.ts:243
This object represents a chat.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
first_name? | string | Optional. First name of the other party in a private chat | @gramio/types/out/objects.d.ts:263 |
id | number | Unique identifier for this chat. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this identifier. | @gramio/types/out/objects.d.ts:247 |
is_direct_messages? | true | Optional. True, if the chat is the direct messages chat of a channel | @gramio/types/out/objects.d.ts:275 |
is_forum? | true | Optional. True, if the supergroup chat is a forum (has topics enabled) | @gramio/types/out/objects.d.ts:271 |
last_name? | string | Optional. Last name of the other party in a private chat | @gramio/types/out/objects.d.ts:267 |
title? | string | Optional. Title, for supergroups, channels and group chats | @gramio/types/out/objects.d.ts:255 |
type | TelegramChatType | Type of the chat, can be either “private”, “group”, “supergroup” or “channel” | @gramio/types/out/objects.d.ts:251 |
username? | string | Optional. Username, for private chats, supergroups and channels if available | @gramio/types/out/objects.d.ts:259 |