def handle(message):
for j in range(len(p)):
print(tagid, ' ' , p[j])
if message.text == 'привет':
bot.send_message(message.chat.id, "правильно"+ str(tagid))
else:
bot.send_message(message.chat.id, "напиши привет"+" "+ message.text + " "+ "нету, попробуйте другой айди")
#elif message.text != p[j]:
# bot.send_message(message.chat.id, "\n Такого айди с "+" "+ message.text + " "+ "нету, попробуйте другой айди")
#if __name__ =='__main__':
t = threading.Thread(target=lambda: handle)
t2 = threading.Thread(target=lambda: bot.polling())
t.start()
#bot.polling(non_stop=True)
t2.start()
2022-03-05 08:23:22,306 (__init__.py:690 Thread-916) ERROR - TeleBot: "A request to the Telegram API
was unsuccessful. Error code: 409. Description: Conflict: terminated by other getUpdates request; make sure that only one bot instance is running"
t = threading.Thread(target=lambda: handle)
А как сделать подскажи пож-та