【发布时间】:2020-08-10 08:24:21
【问题描述】:
在创建自己的电报机器人时遇到错误
File "c:\Users\Кирилл\Desktop\python_bot — копия\main_part.py", line 7
bot.polling(none_stop=True, interval=0)
^
SyntaxError: invalid syntax
代码部分:
bot = TeleBot('ToKeN')
@bot.message_handler(content_types=['text'])
bot.polling(none_stop=True, interval=0)
【问题讨论】:
-
能贴出完整的代码吗?
标签: python bots chatbot telegram-bot python-telegram-bot