File size: 891 Bytes
21bc372 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
import pathlib
from time import perf_counter
from apscheduler.schedulers.asyncio import AsyncIOScheduler
from pyrogram import Client, filters
from pyrogram.enums import ChatType
from pyrogram.handlers import MessageHandler
from pyrogram.types import Message
from akn.utils.helps import ModuleHelp
group_only = [ChatType.GROUP, ChatType.SUPERGROUP]
Akeno = Client.on_message
Akeno_chat_member_updated = Client.on_chat_member_updated()
script_path = pathlib.Path(__file__).parent.parent
modules_help = ModuleHelp()
scheduler_jobs = []
scheduler = AsyncIOScheduler()
bot_uptime = perf_counter()
async def input_user(message: Message) -> str:
"""Get the input from the user"""
if len(message.command) < 2:
output = ""
else:
try:
output = message.text.split(" ", 1)[1].strip() or ""
except IndexError:
output = ""
return output
|