【发布时间】:2021-02-08 08:08:42
【问题描述】:
我是 python 新手,我想通过 file_id 发送文档,但我不知道这有什么问题,这就是我所做的 :)
import telebot
tb = telebot.TeleBot('bot-token')
@tb.message_handler(commands=['r'])
def send_document(message):
tb.send_document(message.chat.id,document = "file_id")
tb.polling()
这是我得到的错误
TypeError: send_document() 得到了一个意外的关键字参数“文档”
希望得到回应
【问题讨论】:
标签: python py-telegram-bot-api