如何从代码中 "talk" 使用机器人框架?

How to "talk" with a bot framework from code?

根据我的模拟器,我在 Azure 上发布了一个运行良好的机器人框架。我开发这个机器人是为了在我正在开发的应用程序 (Xamarin) (C#) 上使用它。但是,我不知道如何与我的机器人交流。我需要以某种方式发送 "strings" 并让机器人回答 "strings"。如何与我的机器人建立连接和对话?

有代码教程吗?

我的机器人发布在 https://XXXXXX.azurewebsites.net/api/messages .

提前致谢!

我认为您将不得不使用 Direct Line API

The Direct Line API is a simple REST API for connecting directly to a single bot. This API is intended for developers writing their own client applications, web chat controls, mobile apps, or service-to-service applications that will talk to their bot

Here您将找到一个示例,展示如何创建 DirectLine 客户端。