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

Function get_blum_database

bot/core/helper.py:21–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19 return f"{int(hours)}h:{int(minutes)}m:{int(remaining_seconds)}s"
20
21async def get_blum_database() -> dict | None:
22 url = 'https://raw.githubusercontent.com/zuydd/database/main/blum.json'
23 async with ClientSession() as session:
24 request = await session.get(url=url, headers={"Accept": "application/json"})
25 if request.status == 200:
26 body = await request.text()
27 return loads(body)
28
29def move_session_to_deleted(client: Client):
30 session_file = f"sessions/{client.name}.session"

Callers 1

check_tasksMethod · 0.90

Calls 1

getMethod · 0.80

Tested by

no test coverage detected