heroku Python Telegram bot因意外的关键字参数而崩溃

6ju8rftf  于 2023-03-08  发布在  Python
关注(0)|答案(1)|浏览(126)

我为Telegram制作了一个简单的机器人:https://github.com/diviiac/FuckBot
我正试着在Heroku上托管它。但是机器人崩溃了,错误如下:

File "/app/fucklist.py", line 8, in <module>
bot = telebot.TeleBot(
TypeError: __init__() got an unexpected keyword argument 'parse_mode'
x0fgdtte

x0fgdtte1#

你必须像这样在send_message方法上使用parse_mode:send_message(chat_id, text, parse_mode='HTML')

相关问题