


Не могу решить ошибку
If command == 'Атака на номер':
chat_id = str(message.chat.id)
file = open('id_file.txt','r+')
ids_list = [line.split('\n')[0] for chat_id in file]
_phone = message.text
if chat_id in ids_list:
print('Этот гандон запустил 2 поток' + ' ' + 'id user' + ' ' + chat_id)
bot.send_message(message.from_user.id, "Спам уже запущен, что бы запускать 2 и более процесса купите приватную версию бота у @saywex")
if chat_id not in ids_list:
bot.send_message(message.from_user.id, "За ваши действия ответственности не несём!")
bot.send_message(message.from_user.id, "Введите номер в виде 79xxx ???????? , 38xxx ????????")
bot.register_next_step_handler(message, get_phone)
potoks + 1
chat_id = str(message.chat.id)
file = open('id_file.txt','r+')
reklama = open('reklama_id_users.txt','r+')
reklama.write(chat_id + '__')
file.write(chat_id)
file.close()
не могу решить проблему
Traceback (most recent call last):
File "C:\Users\amanek\AppData\Local\Programs\Python\Python38-32\lib\site-packages\telebot\util.py", line 59, in run
task(*args, **kwargs)
File "C:\Users\amanek\Desktop\bomber-telega\telegram_bomber.py", line 25, in start
file = open('id_file.txt','r+')
FileNotFoundError: [Errno 2] No such file or directory: 'id_file.txt'
"
Traceback (most recent call last):
File "C:\Users\amanek\Desktop\bomber-telega\telegram_bomber.py", line 485, in
bot.polling(none_stop=True, interval=0)
File "C:\Users\amanek\AppData\Local\Programs\Python\Python38-32\lib\site-packages\telebot\__init__.py", line 389, in polling
self.__threaded_polling(none_stop, interval, timeout)
File "C:\Users\amanek\AppData\Local\Programs\Python\Python38-32\lib\site-packages\telebot\__init__.py", line 413, in __threaded_polling
self.worker_pool.raise_exceptions()
File "C:\Users\amanek\AppData\Local\Programs\Python\Python38-32\lib\site-packages\telebot\util.py", line 108, in raise_exceptions
six.reraise(self.exc_info[0], self.exc_info[1], self.exc_info[2])
File "C:\Users\amanek\AppData\Local\Programs\Python\Python38-32\lib\site-packages\six.py", line 696, in reraise
raise value
File "C:\Users\amanek\AppData\Local\Programs\Python\Python38-32\lib\site-packages\telebot\util.py", line 59, in run
task(*args, **kwargs)
File "C:\Users\amanek\Desktop\bomber-telega\telegram_bomber.py", line 25, in start
file = open('id_file.txt','r+')
FileNotFoundError: [Errno 2] No such file or directory: 'id_file.txt'
1. Не нарушай
2. Делаем велосипед
3. Код на GIST / pastebin
4. Ошибку туда же, но в д. р файл