import telebot
token = "8xxxxxxx7:AAElU-XhG1of3VaZMexdDIE-M2aY71CRIFk"
bot = telebot.TeleBot(token)
bot.send_document(5xxxxxxx4, open(file.txt, 'rb'))
TypeError:send_document()带有1个位置参数,但给出了3个
答案 0 :(得分:1)
send_document
is not implemented在基本Telebot类中:
def send_document(self): raise NotImplemented("send_document needs work")
因此,如果要使用它,则应创建派生类并手动实现。