fix sub count

This commit is contained in:
BennyThink 2022-03-06 17:38:33 +08:00
parent 43ec05ebdd
commit 39b4ae14de
No known key found for this signature in database
GPG key ID: 6CD0DBDA5235D481

View file

@ -177,7 +177,10 @@ def sub_count_handler(client: "Client", message: "types.Message"):
username = message.from_user.username
chat_id = message.chat.id
if username == OWNER:
client.send_message(chat_id, VIP().sub_count())
with BytesIO() as f:
f.write(VIP().sub_count().encode("u8"))
f.name = "subscription count.txt"
client.send_document(chat_id, f)
@app.on_message(filters.command(["direct"]))