Chat

data class Chat(id: Long, type: String, title: String?, username: String?, first_name: String?, last_name: String?, photo: ChatPhoto?, bio: String?, description: String?, invite_link: String?, pinned_message: Message?, permissions: ChatPermissions?, slow_mode_delay: Long?, message_auto_delete_time: Long?, sticker_set_name: String?, can_set_sticker_set: Boolean?, linked_chat_id: Long?, location: ChatLocation?) : TelegramModel

This object represents a chat.

Constructors

Chat
Link copied to clipboard
fun Chat(id: Long, type: String, title: String? = null, username: String? = null, first_name: String? = null, last_name: String? = null, photo: ChatPhoto? = null, bio: String? = null, description: String? = null, invite_link: String? = null, pinned_message: Message? = null, permissions: ChatPermissions? = null, slow_mode_delay: Long? = null, message_auto_delete_time: Long? = null, sticker_set_name: String? = null, can_set_sticker_set: Boolean? = null, linked_chat_id: Long? = null, location: ChatLocation? = null)
Creates a Chat.

Properties

bio
Link copied to clipboard
val bio: String? = null
Optional.
can_set_sticker_set
Link copied to clipboard
val can_set_sticker_set: Boolean? = null
Optional.
description
Link copied to clipboard
val description: String? = null
Optional.
first_name
Link copied to clipboard
val first_name: String? = null
Optional.
id
Link copied to clipboard
val id: Long
Unique identifier for this chat.
invite_link
Link copied to clipboard
val invite_link: String? = null
Optional.
last_name
Link copied to clipboard
val last_name: String? = null
Optional.
linked_chat_id
Link copied to clipboard
val linked_chat_id: Long? = null
Optional.
location
Link copied to clipboard
val location: ChatLocation? = null
Optional.
message_auto_delete_time
Link copied to clipboard
val message_auto_delete_time: Long? = null
Optional.
permissions
Link copied to clipboard
val permissions: ChatPermissions? = null
Optional.
photo
Link copied to clipboard
val photo: ChatPhoto? = null
Optional.
pinned_message
Link copied to clipboard
val pinned_message: Message? = null
Optional.
slow_mode_delay
Link copied to clipboard
val slow_mode_delay: Long? = null
Optional.
sticker_set_name
Link copied to clipboard
val sticker_set_name: String? = null
Optional.
title
Link copied to clipboard
val title: String? = null
Optional.
type
Link copied to clipboard
val type: String
Type of chat, can be either “private”, “group”, “supergroup” or “channel”
username
Link copied to clipboard
val username: String? = null
Optional.