BotFrameworkClientImpl class
Costruttori
| Bot |
Metodi
| post |
Dettagli costruttore
BotFrameworkClientImpl(ServiceClientCredentialsFactory, string, fetch)
new BotFrameworkClientImpl(credentialsFactory: ServiceClientCredentialsFactory, loginEndpoint: string, botFrameworkClientFetch?: fetch)
Parametri
- credentialsFactory
- ServiceClientCredentialsFactory
Istanza di ServiceClientCredentialsFactory.
- loginEndpoint
-
string
URL di accesso.
- botFrameworkClientFetch
-
fetch
Implementazione di recupero personalizzata da usare nel BotFrameworkClient.
Dettagli metodo
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>>
Parametri
- fromBotId
-
string
MicrosoftAppId del bot che invia l'attività.
- toBotId
-
string
MicrosoftAppId del bot che riceve l'attività.
- toUrl
-
string
URL del bot che riceve l'attività.
- serviceUrl
-
string
URL di callback per l'host di competenze.
- conversationId
-
string
ID conversazione da usare per la conversazione con la competenza.
- activity
-
Activity
Attività da inviare a forward.
Restituisce
Promise<InvokeResponse<T>>
Promessa che rappresenta l'operazione asincrona.