new Chat()

Extends
Base

Properties

id  object

ID that represents the chat

isGroup  boolean

Indicates if the Chat is a Group Chat

isReadOnly  boolean

Indicates if the Chat is readonly

name  string

Title of the chat

timestamp  number

Unix timestamp for when the chat was created

unreadCount  number

Amount of messages unread

Method

async

sendMessage(content, options) → Promise containing Message

Send a message to this chat

Parameters

Name Type Optional Description

content

(string or MessageMedia)

 

options

object

 

Returns

Promise containing Message 

Message that was just sent