refactored-src

This commit is contained in:
2023-09-06 13:20:50 +03:00
parent bf9f6d0891
commit 6b30c6dc0c
21 changed files with 64 additions and 62 deletions

View File

@@ -0,0 +1,12 @@
from utils.graph import generate_chart
from api import send_document
from storage import storage, scan
import json
async def handle_command_graph(msg):
usr_ids, members = scan(match='usr-*', count=100)
data = generate_chart(members)
if data:
r = await send_document(msg['chat']['id'], data, 'chart.svg')
print(r)