""".ola Plugin for @UniBorg"""
import asyncio
from telethon import events
from telethon.tl.types import ChannelParticipantsAdmins
from uniborg.util import admin_cmd


@borg.on(admin_cmd("ola"))
async def _(event):
    if event.fwd_from:
        return
    mentions = "**Master! I am Alive. \n\nI would rather disconnect but not die.\n--------------------------------------------\n\nTelethon    : 1.10.10 \nPython       : 3.8.2 \n\nAuthor       :** ᗩԺиαи ꌗ𝖎ժժ.. ០⨏⨏i͛ᴄɪαℓ** \nUsername :**@AdnanSiddOfficial \n**Status :** `Bot is functioning good.........`" 
    chat = await event.get_input_chat()
    async for x in borg.iter_participants(chat, filter=ChannelParticipantsAdmins):
        mentions += f""
    reply_message = None
    if event.reply_to_msg_id:
        reply_message = await event.get_reply_message()
        await reply_message.reply(mentions)
    else:
        await event.reply(mentions)
    await event.delete()
