电报Bot多个内联键盘按钮

时间:2020-07-06 04:31:37

标签: vb.net telegram-bot telegram-webhook

我试图将.NET api用于电报机器人,我的问题是: 我不能添加多个按钮,在C#中我尝试了很多东西,但是在VB.NET中需要它

1个按钮的工作方式:

Bot.SendTextMessageAsync(chatId:=-1001386327571, text:="Trying *all the parameters* of `sendMessage` method", replyMarkup:=New InlineKeyboardMarkup(InlineKeyboardButton.WithUrl("Test", "google.com")))

我正在尝试什么:

    Bot.SendTextMessageAsync(chatId:=-1001386327571, text:="Trying *all the parameters* of `sendMessage` method", replyMarkup:=New InlineKeyboardMarkup(InlineKeyboardButton.WithUrl("Test", "google.com"), InlineKeyboardButton("test2", "google.com")))

0 个答案:

没有答案