Options
Menu

Class MessageChatHistoryEntry

Represents a message that was sent to this chat. Analogous to a ChatMessageEvent.

Hierarchy

Index

Properties

Object literals

Properties

chatId

chatId: string

The ID of the chat on which this event occurred

eventNumber

eventNumber: number

The unique sequential ID of this event

message

message: string

The text of the message.

timestamp

timestamp: Date

The timestamp at which this event occurred

type

type: string

The type of event. One of Types

user

The user that initiated this event

TYPE

TYPE: string = ChatHistoryEntry.TYPES.MESSAGE

Object literals

TYPES

TYPES: object

CREATED

CREATED: string = "created"

MESSAGE

MESSAGE: string = "message"

NAME_CHANGED

NAME_CHANGED: string = "name_changed"

TOPIC_CHANGED

TOPIC_CHANGED: string = "topic_changed"

USER_ADDED

USER_ADDED: string = "user_added"

USER_JOINED

USER_JOINED: string = "user_joined"

USER_LEFT

USER_LEFT: string = "user_left"

USER_REMOVED

USER_REMOVED: string = "user_removed"