0

我正在尝试在我的机器人中使用键盘,几天前我已经更新了 telepot ,如此处所述Bot 在踢 TELEPOT 时一直显示相同的错误。在此之后,之前完美运行的相同代码,现在它不再工作了。键盘的代码如下:

bot.sendMessage(chat_id, str(BlackCard),
    ReplyKeyboardMarkup(
    keyboard=[
    [KeyboardButton(text=str(cards[0]))],
    [KeyboardButton(text=str(cards[1]))],
    [KeyboardButton(text=str(cards[2]))],
    [KeyboardButton(text=str(cards[3]))],
    [KeyboardButton(text=str(cards[4]))]
   ]
))

我的点子版本是 21.2.1

我不知道如何弄清楚telepot的版本

终端的输出如下: 在此处输入图像描述

4

0 回答 0