Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Chat

Hierarchy

Implements

Constructors

constructor

Properties

Readonly client

client: Client

Readonly conversationID

conversationID: string

createdAt

createdAt: number

Readonly id

id: string

lastMessage

lastMessage: MessagePreview

messageCount

messageCount: number

Optional messageDeletionMode

messageDeletionMode: string[]

Optional messageDeletionPeriod

messageDeletionPeriod: number

Readonly messages

Readonly recipient

recipient: User

Readonly type

type: Chat = ...

updatedAt

updatedAt: number

Methods

_clone

  • _clone(): any
  • Returns any

_patch

  • _patch(data: Partial<APIChat>): Chat
  • Parameters

    • data: Partial<APIChat>

    Returns Chat

send

Static _patch

  • Parameters

    • self: Channel
    • data: Partial<ChannelData>

    Returns Channel

Static dataFromChat

  • dataFromChat(data: APIChat): ChannelData
  • Parameters

    • data: APIChat

    Returns ChannelData

Static dataFromGroup

  • dataFromGroup(data: APIGroup): ChannelData
  • Parameters

    • data: APIGroup

    Returns ChannelData

Generated using TypeDoc