alexandersobyanin / python.alexandersobyanin.ru

https://python.alexandersobyanin.ru
0 stars 0 forks source link

Error in type process #6

Closed b1oki closed 1 year ago

b1oki commented 1 year ago
Traceback (most recent call last):
  File "/home/b1oki/.virtualenvs/python-env/lib/python3.7/site-packages/flask/app.py", line 2446, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/b1oki/.virtualenvs/python-env/lib/python3.7/site-packages/flask/app.py", line 1951, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/b1oki/.virtualenvs/python-env/lib/python3.7/site-packages/flask/app.py", line 1820, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/home/b1oki/.virtualenvs/python-env/lib/python3.7/site-packages/flask/_compat.py", line 39, in reraise
    raise value
  File "/home/b1oki/.virtualenvs/python-env/lib/python3.7/site-packages/flask/app.py", line 1949, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/b1oki/.virtualenvs/python-env/lib/python3.7/site-packages/flask/app.py", line 1935, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/home/b1oki/mysite/flask_app.py", line 43, in telegram_sret_shot_bot_webhook
    return telegram.handle_sret_shot_bot(request.get_json())
  File "/home/b1oki/mysite/telegram.py", line 50, in handle_sret_shot_bot
    return basic_message_handler(update, telegram_sret_shot_bot, 'Скоро сможете прислать скриншот…')
  File "/home/b1oki/mysite/telegram.py", line 62, in basic_message_handler
    chat_type = message_data['type']
KeyError: 'type'