BotFrameworkClientImpl class

构造函数

BotFrameworkClientImpl(ServiceClientCredentialsFactory, string, fetch)

方法

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

构造函数详细信息

BotFrameworkClientImpl(ServiceClientCredentialsFactory, string, fetch)

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

参数

loginEndpoint

string

登录 URL。

botFrameworkClientFetch

fetch

要用于 BotFrameworkClient 的自定义提取实现。

方法详细信息

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>>

参数

fromBotId

string

发送活动的机器人的 MicrosoftAppId。

toBotId

string

接收活动的机器人的 MicrosoftAppId。

toUrl

string

接收活动的机器人的 URL。

serviceUrl

string

技能主机的回调 URL。

conversationId

string

用于技能会话的会话 ID。

activity

Activity

要转发的活动。

返回

Promise<InvokeResponse<T>>

表示异步操作的承诺。