Pavel Denisov, 2018-09-22 16:32:20,345 (util.py:65 WorkerThread1) ERROR - TeleBot: "NameError occurred, args=("name 'kickid' is not defined",)
Traceback (most recent call last):
File "C:\Users\Helle\AppData\Local\Programs\Python\Python37-32\lib\site-packages\telebot\util.py", line 59, in run
task(*args, **kwargs)
File "C:/Users/Helle/PycharmProjects/BOT/botEX/main.py", line 40, in idforkick
bot.kick_chat_member(message.chat.id, {kickid}.format(kickid=message.text))
NameError: name 'kickid' is not defined
"
Traceback (most recent call last):
File "C:/Users/Helle/PycharmProjects/BOT/botEX/main.py", line 57, in
bot.polling(none_stop=True, interval=0)
File "C:\Users\Helle\AppData\Local\Programs\Python\Python37-32\lib\site-packages\telebot\__init__.py", line 389, in polling
self.__threaded_polling(none_stop, interval, timeout)
File "C:\Users\Helle\AppData\Local\Programs\Python\Python37-32\lib\site-packages\telebot\__init__.py", line 413, in threaded_polling
self.worker_pool.raise_exceptions()
File "C:\Users\Helle\AppData\Local\Programs\Python\Python37-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\Helle\AppData\Local\Programs\Python\Python37-32\lib\site-packages\six.py", line 693, in reraise
raise value
File "C:\Users\Helle\AppData\Local\Programs\Python\Python37-32\lib\site-packages\telebot\util.py", line 59, in run
task(*args, **kwargs)
File "C:/Users/Helle/PycharmProjects/BOT/botEX/main.py", line 40, in idforkick
bot.kick_chat_member(message.chat.id, {kickid}.__format(kickid=message.text))
NameError: name 'kickid' is not defined