mirror of
https://github.com/tgbot-collection/ytdlbot.git
synced 2024-11-10 17:25:59 +08:00
fix sub count
This commit is contained in:
parent
43ec05ebdd
commit
39b4ae14de
1 changed files with 4 additions and 1 deletions
|
@ -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"]))
|
||||
|
|
Loading…
Reference in a new issue