Chat

fun Chat(id: Int, title: String? = null, username: String? = null, firstName: String? = null, lastName: String? = null, photo: ChatPhoto? = null, bio: String? = null, description: String? = null, inviteLink: String? = null, pinnedMessage: Message? = null, permissions: ChatPermissions? = null, slowModeDelay: Int? = null, stickerSetName: String? = null, canSetStickerSet: Boolean = false, linkedChatId: Int? = null, location: ChatLocation? = null, type: String)

Parameters

id

Unique identifier for this chat. This number may be greater than 32 bits and some programming languages may have difficulty/silent defects in interpreting it. But it is smaller than 52 bits, so a signed 64 bit integer or double-precision float type are safe for storing this identifier.

title

Optional. Title, for supergroups, channels and group chats

username

Optional. Username, for private chats, supergroups and channels if available

firstName

Optional. First name of the other party in a private chat

lastName

Optional. Last name of the other party in a private chat

photo

Optional. Chat photo. Returned only in getChat.

bio

Optional. Bio of the other party in a private chat. Returned only in getChat.

description

Optional. Description, for groups, supergroups and channel chats. Returned only in getChat.

inviteLink

Optional. Chat invite link, for groups, supergroups and channel chats. Each administrator in a chat generates their own invite links, so the bot must first generate the link using exportChatInviteLink. Returned only in getChat.

pinnedMessage

Optional. The most recent pinned message (by sending date). Returned only in getChat.

permissions

Optional. Default chat member permissions, for groups and supergroups. Returned only in getChat.

slowModeDelay

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

stickerSetName

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

canSetStickerSet

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

linkedChatId

Optional. Unique identifier for the linked chat, i.e. the discussion group identifier for a channel and vice versa; for supergroups and channel chats. This identifier may be greater than 32 bits and some programming languages may have difficulty/silent defects in interpreting it. But it is smaller than 52 bits, so a signed 64 bit integer or double-precision float type are safe for storing this identifier. Returned only in getChat.

location

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

type

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