BotFrameworkClientImpl class
Constructors
Bot |
Methods
post |
Constructor Details
BotFrameworkClientImpl(ServiceClientCredentialsFactory, string, fetch)
new BotFrameworkClientImpl(credentialsFactory: ServiceClientCredentialsFactory, loginEndpoint: string, botFrameworkClientFetch?: fetch)
Parameters
- credentialsFactory
- ServiceClientCredentialsFactory
A ServiceClientCredentialsFactory instance.
- 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.