Files
Ultroid-fork/vcbot/_help.py
Devesh Pal 90ad5646ff Ultroid v0.5 Updates
Co-authored-by: Amit Sharma <48654350+buddhhu@users.noreply.github.com>
Co-authored-by: Aditya <xditya@ultroid.tech>
Co-authored-by: Kaif <88398455+kaif-00z@users.noreply.github.com>
Co-authored-by: Aditya <me@xditya.me>
Co-authored-by: 1Danish-00 <danish@ultroid.tech>
Co-authored-by: smartman_ru <bblkovo@gmail.com>
2022-03-20 00:57:54 +05:30

33 lines
840 B
Python

# Ultroid - UserBot
# Copyright (C) 2021-2022 TeamUltroid
#
# This file is a part of < https://github.com/TeamUltroid/Ultroid/ >
# PLease read the GNU Affero General Public License in
# <https://www.github.com/TeamUltroid/Ultroid/blob/main/LICENSE/>.
from telethon import Button
from . import vc_asst, asst, in_pattern
@vc_asst("vchelp")
async def helper(event):
res = await event.client.inline_query(asst.me.username, "vchelp")
try:
await res[0].click(event.chat_id)
except Exception as e:
await event.eor(e)
@in_pattern("vchelp")
async def wiqhshd(e):
builder = e.builder
res = [
await builder.article(
title="Vc Help",
text="**VCBot Help Menu**\n\n",
buttons=Button.inline("Voice Chat Help", data="uh_VCBot_"),
)
]
await e.answer(res)