BotFrameworkClientImpl class

Constructors

BotFrameworkClientImpl(ServiceClientCredentialsFactory, string, fetch)

Methods

postActivity<T>(string, string, string, string, string, Activity)

Constructor Details

BotFrameworkClientImpl(ServiceClientCredentialsFactory, string, fetch)

new BotFrameworkClientImpl(credentialsFactory: ServiceClientCredentialsFactory, loginEndpoint: string, botFrameworkClientFetch?: fetch)

Parameters

loginEndpoint

string

The login url.

botFrameworkClientFetch

fetch

A custom Fetch implementation to be used in the BotFrameworkClient.

Method Details

postActivity<T>(string, string, string, string, string, Activity)

function postActivity<T>(fromBotId: string, toBotId: string, toUrl: string, serviceUrl: string, conversationId: string, activity: Activity): Promise<InvokeResponse<T>>

Parameters

fromBotId

string

The MicrosoftAppId of the bot sending the activity.

toBotId

string

The MicrosoftAppId of the bot receiving the activity.

toUrl

string

The URL of the bot receiving the activity.

serviceUrl

string

The callback Url for the skill host.

conversationId

string

A conversation ID to use for the conversation with the skill.

activity

Activity

The Activity to send to forward.

Returns

Promise<InvokeResponse<T>>

A promise representing the asynchronous operation.