-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
_help.py
32 lines (26 loc) · 840 Bytes
/
_help.py
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
32
# 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)