Guest User

Ошибка 403, telebot

a guest
Feb 7th, 2020
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.87 KB | None | 0 0
  1. 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"}\']',)
  2. Traceback (most recent call last):
  3. File "C:\Users\none\AppData\Local\Programs\Python\Python38-32\lib\site-packages\telebot\util.py", line 60, in run
  4. task(*args, **kwargs)
  5. File "c:/Users/none/Desktop/bot1.py", line 15, in klava
  6. bot.send_message(message.chat.id, 'ранд', reply_markup=keyboard)
  7. File "C:\Users\none\AppData\Local\Programs\Python\Python38-32\lib\site-packages\telebot\__init__.py", line 600, in send_message
  8. apihelper.send_message(self.token, chat_id, text, disable_web_page_preview, reply_to_message_id,
  9. File "C:\Users\none\AppData\Local\Programs\Python\Python38-32\lib\site-packages\telebot\apihelper.py", line 154, in send_message
  10. return _make_request(token, method_url, params=payload, method='post')
  11. File "C:\Users\none\AppData\Local\Programs\Python\Python38-32\lib\site-packages\telebot\apihelper.py", line 60, in _make_request
  12. return _check_result(method_name, result)['result']
  13. File "C:\Users\none\AppData\Local\Programs\Python\Python38-32\lib\site-packages\telebot\apihelper.py", line 79, in _check_result
  14. raise ApiException(msg, method_name, result)
  15. telebot.apihelper.ApiException: A request to the Telegram API was unsuccessful. The server returned HTTP 403 Forbidden. Response body:
  16. [b'{"ok":false,"error_code":403,"description":"Forbidden: bot was blocked by the user"}']
  17. "
  18. 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:
  19. [b'{"ok":false,"error_code":403,"description":"Forbidden: bot was blocked by the user"}']"
Add Comment
Please, Sign In to add comment