MCPcopy Create free account
hub / github.com/HiddenCodeDevs/BlumTelegramBot / auth

Method auth

bot/core/tapper.py:39–47  ·  view source on GitHub ↗
(self, session: aiohttp.ClientSession)

Source from the content-addressed store, hash-verified

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:

Callers 1

runMethod · 0.95

Calls 3

BlumApiClass · 0.90
get_tg_web_dataFunction · 0.90
loginMethod · 0.80

Tested by

no test coverage detected