Перейти в чат

TamTamBot для питона ✔️

461
А теперь посыпались вот такие ошибки одна за другой))) Я так понял у тех сообщений время жизни закончилось))) Все-таки более двух часов прошло))) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Python\comrade_major\TamTamBot\TamTamBot.py", line 647, in send_error_message res = self.msg.send_message(NewMessageBody(main_info, link=update.link), chat_id=update.chat_id) File "C:\Python\comrade_major\openapi_client\api\messages_api.py", line 487, in send_message (data) = self.send_message_with_http_info(new_message_body, **kwargs) # noqa: E501 File "C:\Python\comrade_major\openapi_client\api\messages_api.py", line 572, in send_message_with_http_info collection_formats=collection_formats) File "C:\Python\comrade_major\openapi_client\api_client.py", line 339, in call_api _preload_content, _request_timeout) File "C:\Python\comrade_major\openapi_client\api_client.py", line 170, in __call_api _request_timeout=_request_timeout) File "C:\Python\comrade_major\openapi_client\api_client.py", line 382, in request body=body) File "C:\Python\comrade_major\openapi_client\rest.py", line 274, in POST body=body) File "C:\Python\comrade_major\openapi_client\rest.py", line 227, in request raise ApiException(http_resp=r) openapi_client.rest.ApiException: (403) Reason: Forbidden HTTP response headers: HTTPHeaderDict({'Content-Length': '86', 'Content-Type': 'application/json; charset=utf-8', 'Cache-Control': 'no-cache', 'Strict-Transport-Security': 'max-age=2592000;includeSubdomains', 'Content-Security-Policy-Report-Only': "default-src 'self' blob:; script-src https://web.tamtam.chat https://www.googletagmanager.com/ https://www.google-analytics.com/ https://mc.yandex.ru/ blob: 'self' 'unsafe-inline' 'unsafe-eval'; style-src https://web.tamtam.chat 'unsafe-inline'; img-src https://*.mycdn.me https://*.ok.ru https://web.tamtam.chat https://www.google-analytics.com/ https://mc.yandex.ru/ https://stats.g.doubleclick.net/ https://*.tenor.com/">.tenor.com/ blob: data: 'self'; connect-src wss://*.tamtam.chat/websocket https://*.mycdn.me/ https://ok.ru/web-api/tamtam https://mc.yandex.ru/ https://*.mapbox.com/ https://*.tenor.com/">.tenor.com/ https://ipapi.co/ 'self' blob:; media-src https://web.tamtam.chat https://*.mycdn.me https://*.ok.ru https://*.tenor.com blob:; report-uri /csp/report", 'Set-Cookie': 'web_ui_lang=ru; Path=/; Domain=.tamtam.chat; Max-Age=7776000', 'Connection': 'Keep-Alive'}) HTTP response body: {"code":"chat.denied","message":"Key: error.dialog.suspended, args: [577318911934,]."}