在博客文章中有一个如何使用“测试”通道直接调用机器人的示例:https ://blog.botframework.com/2017/06/19/load-testing-a-bot/
Bot Framework 目前支持以下渠道:
public sealed class ChannelIds
{
public const string Facebook = "facebook";
public const string Skype = "skype";
public const string Msteams = "msteams";
public const string Telegram = "telegram";
public const string Kik = "kik";
public const string Email = "email";
public const string Slack = "slack";
public const string Groupme = "groupme";
public const string Sms = "sms";
public const string Emulator = "emulator";
public const string Directline = "directline";
public const string Webchat = "webchat";
public const string Console = "console";
public const string Cortana = "cortana";
}
参考:https ://github.com/Microsoft/BotBuilder/blob/605eeceb36c01771d7146b39a6ec8b2184ad41a6/CSharp/Library/Microsoft.Bot.Builder/ConnectorEx/IChannelCapability.cs#L39
如果您不使用 Bot Framework 提供的通道之一,则需要实现自己的身份验证方案,并覆盖 bot builder sdk 中的身份验证验证。
看:
https://github.com/Microsoft/BotBuilder/blob/b102e096ad0b3bb65cde51acc3bce11037375c6e/CSharp/Library/Microsoft.Bot.Connector.NetFramework/BotAuthentication.cs