BotFrameworkClientImpl class
Konstruktor
| Bot |
Metode
| post |
Detail Konstruktor
BotFrameworkClientImpl(ServiceClientCredentialsFactory, string, fetch)
new BotFrameworkClientImpl(credentialsFactory: ServiceClientCredentialsFactory, loginEndpoint: string, botFrameworkClientFetch?: fetch)
Parameter
- credentialsFactory
- ServiceClientCredentialsFactory
Instans ServiceClientCredentialsFactory.
- loginEndpoint
-
string
Url masuk.
- botFrameworkClientFetch
-
fetch
Implementasi Fetch kustom yang akan digunakan dalam BotFrameworkClient.
Detail Metode
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>>
Parameter
- fromBotId
-
string
MicrosoftAppId dari bot yang mengirim aktivitas.
- toBotId
-
string
MicrosoftAppId dari bot yang menerima aktivitas.
- toUrl
-
string
URL bot yang menerima aktivitas.
- serviceUrl
-
string
Url panggilan balik untuk host keterampilan.
- conversationId
-
string
ID percakapan yang digunakan untuk percakapan dengan keterampilan.
- activity
-
Activity
Aktivitas yang akan dikirim ke penerusan.
Mengembalikan
Promise<InvokeResponse<T>>
Janji yang mewakili operasi asinkron.