MCPcopy Create free account
hub / github.com/TechifyBots/Rename-Bot / log_file

Function log_file

plugins/admin.py:27–31  ·  view source on GitHub ↗
(b, m)

Source from the content-addressed store, hash-verified

25
26@Client.on_message(filters.command('logs') & filters.user(Config.ADMIN))
27async def log_file(b, m):
28 try:
29 await m.reply_document('BotLog.txt')
30 except Exception as e:
31 await m.reply(str(e))
32
33@Client.on_message(filters.command("addpremium") & filters.user(Config.ADMIN))
34async def add_premium(client, message):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected