Added additional SQLite option

This commit is contained in:
2023-08-23 15:45:15 +02:00
parent 59bfc4c1ca
commit 866ab2429f
12 changed files with 134 additions and 5 deletions

View File

@@ -0,0 +1,16 @@
import asyncio
from pyrogram import filters
from pyrogram.types import Message
from classes.pyroclient import PyroClient
@PyroClient.on_message(
~filters.scheduled
& filters.private
& filters.command(["shutdown", "reboot", "restart"], prefixes=["/"]) # type: ignore
)
async def command_shutdown(app: PyroClient, msg: Message):
if msg.from_user.id == app.owner:
asyncio.get_event_loop().create_task(app.stop())