【发布时间】:2018-05-15 13:03:42
【问题描述】:
我在电报机器人中的命令视图有一些问题。我正在使用带有 c# asp.net 的 telegram.bot SDK:
var keyboard = new ReplyKeyboardMarkup(new[]
{
new [] // first row
{
new KeyboardButton("/help"),
new KeyboardButton("/start")
},
new []
{
new KeyboardButton("/news"),
new KeyboardButton("/lots")
}
}, resizeKeyboard: true);
结果是一个类似的键盘按钮,但我需要一个命令列表。像这样: Want this 但我找不到如何做到这一点并拥有这个:Have this
【问题讨论】:
-
您必须使用 BotFather 手动添加命令列表。阅读this answer了解更多信息。
标签: c# button keyboard telegram-bot