(self, session: aiohttp.ClientSession)
| 37 | self._log = log |
| 38 | |
| 39 | async def auth(self, session: aiohttp.ClientSession): |
| 40 | self._api = BlumApi(session, self._log) |
| 41 | web_data_params = await get_tg_web_data(self.tg_client, self._log) |
| 42 | self._log.trace("Got init data for auth.") |
| 43 | if not web_data_params: |
| 44 | self._log.error("Auth error, not init_data from tg_web_data") |
| 45 | return |
| 46 | await self._api.login(web_data_params=web_data_params) |
| 47 | self._log.info("Account login successfully") |
| 48 | |
| 49 | async def check_tribe(self): |
| 50 | try: |
no test coverage detected