chat

Table of contents

Classes

Functions

connect

connect(chat: Chat): Connection

Connect the application to a Chat instance.

see ConnectionProvider

deprecated use the channel parameter to Conversation.execute instead

Parameters:

NameType
chatChat

Returns: Connection


createChat

createChat(account?: Account): Promise<Chat>

Create a Chat instance to use with an application.

deprecated

Parameters:

NameTypeDescription
account?AccountDasha account to use. Must be the same as the application's account. If not set, uses the current account.

Returns: Promise<Chat>

createChat(conversation: Conversation, options?: { account?: Account }): Promise<Chat>

Create a Chat instance to use with a conversation.

Parameters:

NameTypeDescription
conversationConversationa conversation to connect to
options?object-
options.account?AccountDasha account to use. Must be the same as the application's account. If not set, uses the current account.

Returns: Promise<Chat>


createConsoleChat

createConsoleChat(account?: Account): Promise<Chat>

Create a Chat instance to use with an application.

deprecated

Parameters:

NameTypeDescription
account?AccountDasha account to use. Must be the same as the application's account. If not set, uses the current account.

Returns: Promise<Chat>

createConsoleChat(conversation: Conversation, options?: { account?: Account ; syncMode?: boolean }): Promise<Chat>

Create a Chat instance to use with a conversation.

Parameters:

NameTypeDescription
conversationConversationa conversation to connect to
options?object-
options.account?AccountDasha account to use. Must be the same as the application's account. If not set, uses the current account.
options.syncMode?boolean-

Returns: Promise<Chat>

Found a mistake? Let us know.

Enroll in beta

Request invite to our private Beta program for developers to join the waitlist. No spam, we promise.