我已经写了一个简单的示例机器人与远程机器人模块,但我不知道我应该如何解决这个问题。我的代码是:
import telebot
bot = telebot.testBot("699870969:AAHth6QQWI8GR2CuCyW9V98F3CXUIA2siAw")
@bot.message_handler(commands = ['start', 'help'])
def send_welcome(message):
bot.reply_to(message, "hesam, how are you ?")
@bot.message_handler(func=lambda message: True)
def echo_all(message):
bot.reply_to(message, message.text)
bot.polling()
错误:远程机器人模块没有测试机器人
的属性
发布于 2018-09-17 01:50:07
看起来您拼写错了TeleBot
类名。参见the example。
https://stackoverflow.com/questions/52356024
复制相似问题