Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 2020-02-07 20:17:14,929 (util.py:66 WorkerThread2) ERROR - TeleBot: "ApiException occurred, args=('A request to the Telegram API was unsuccessful. The server returned HTTP 403 Forbidden. Response body:\n[b\'{"ok":false,"error_code":403,"description":"Forbidden: bot was blocked by the user"}\']',)
- Traceback (most recent call last):
- File "C:\Users\none\AppData\Local\Programs\Python\Python38-32\lib\site-packages\telebot\util.py", line 60, in run
- task(*args, **kwargs)
- File "c:/Users/none/Desktop/bot1.py", line 15, in klava
- bot.send_message(message.chat.id, 'ранд', reply_markup=keyboard)
- File "C:\Users\none\AppData\Local\Programs\Python\Python38-32\lib\site-packages\telebot\__init__.py", line 600, in send_message
- apihelper.send_message(self.token, chat_id, text, disable_web_page_preview, reply_to_message_id,
- File "C:\Users\none\AppData\Local\Programs\Python\Python38-32\lib\site-packages\telebot\apihelper.py", line 154, in send_message
- return _make_request(token, method_url, params=payload, method='post')
- File "C:\Users\none\AppData\Local\Programs\Python\Python38-32\lib\site-packages\telebot\apihelper.py", line 60, in _make_request
- return _check_result(method_name, result)['result']
- File "C:\Users\none\AppData\Local\Programs\Python\Python38-32\lib\site-packages\telebot\apihelper.py", line 79, in _check_result
- raise ApiException(msg, method_name, result)
- telebot.apihelper.ApiException: A request to the Telegram API was unsuccessful. The server returned HTTP 403 Forbidden. Response body:
- [b'{"ok":false,"error_code":403,"description":"Forbidden: bot was blocked by the user"}']
- "
- 2020-02-07 20:17:14,930 (__init__.py:420 MainThread) ERROR - TeleBot: "A request to the Telegram API was unsuccessful. The server returned HTTP 403 Forbidden. Response body:
- [b'{"ok":false,"error_code":403,"description":"Forbidden: bot was blocked by the user"}']"
Add Comment
Please, Sign In to add comment