Перейти в чат

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

1
(venv) C:\Users\Denis\ttBotDevHelper>ttBotDevHelper.py 2019-12-14 19:42:56,648 - BotDevHelper[MainThread-3396] - ERROR - TamTamBot.__init__:99 - Api Exception Traceback (most recent call last): File "C:\Users\Denis\ttBotDevHelper\TamTamBot\TamTamBot.py", line 97, in __init__ self.info = self.api.edit_my_info(bp) File "C:\Users\Denis\ttBotDevHelper\openapi_client\api\bots_api.py", line 54, in edit_my_in fo (data) = self.edit_my_info_with_http_info(bot_patch, **kwargs) # noqa: E501 File "C:\Users\Denis\ttBotDevHelper\openapi_client\api\bots_api.py", line 119, in edit_my_i nfo_with_http_info return self.api_client.call_api( File "C:\Users\Denis\ttBotDevHelper\openapi_client\api_client.py", line 334, in call_api return self.__call_api(resource_path, method, File "C:\Users\Denis\ttBotDevHelper\openapi_client\api_client.py", line 166, in __call_api response_data = self.request( File "C:\Users\Denis\ttBotDevHelper\openapi_client\api_client.py", line 392, in request return self.rest_client.PATCH(url, File "C:\Users\Denis\ttBotDevHelper\openapi_client\rest.py", line 288, in PATCH return self.request("PATCH", url, File "C:\Users\Denis\ttBotDevHelper\openapi_client\rest.py", line 227, in request raise ApiException(http_resp=r) openapi_client.rest.ApiException: (401) Reason: Unauthorized HTTP response headers: HTTPHeaderDict({'Content-Length': '51', 'Content-Type': 'application/j son; charset=utf-8', 'Cache-Control': 'no-cache', 'Strict-Transport-Security': 'max-age=25920 00;includeSubdomains', 'Content-Security-Policy-Report-Only': "default-src 'self' blob:; scri pt-src .tamtam.chat">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.c hat 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/ https://ipapi.co/ 'self' blob:; media-src .tamtam.chat">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":"verify.token","message":"No access_token"} 2019-12-14 19:42:57,292 - BotDevHelper[MainThread-3396] - INFO - TamTamBot.polling:543 - Star t. Press Ctrl-Break for stopping. Traceback (most recent call last): File "C:\Users\Denis\ttBotDevHelper\ttBotDevHelper.py", line 95, in <module> BotDevHelper().polling() File "C:\Users\Denis\ttBotDevHelper\TamTamBot\TamTamBot.py", line 553, in polling ul = self.subscriptions.get_updates(types=Update.update_types, _request_timeout=45) File "C:\Users\Denis\ttBotDevHelper\openapi_client\api\subscriptions_api.py", line 145, in get_updates (data) = self.get_updates_with_http_info(**kwargs) # noqa: E501 File "C:\Users\Denis\ttBotDevHelper\openapi_client\api\subscriptions_api.py", line 220, in get_updates_with_http_info return self.api_client.call_api( File "C:\Users\Denis\ttBotDevHelper\openapi_client\api_client.py", line 334, in call_api return self.__call_api(resource_path, method, File "C:\Users\Denis\ttBotDevHelper\openapi_client\api_client.py", line 166, in __call_api response_data = self.request( File "C:\Users\Denis\ttBotDevHelper\openapi_client\api_client.py", line 356, in request return self.rest_client.GET(url, File "C:\Users\Denis\ttBotDevHelper\openapi_client\rest.py", line 233, in GET return