Spaces:
Build error
Build error
File size: 1,098 Bytes
c320f0a | 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 33 | from telethon import events, Button
from Zaid import Zaid, BOT_USERNAME
btn =[
[Button.inline("Admin", data="admin"), Button.inline("Bans", data="bans")],
[Button.inline("Pins", data="pins"), Button.inline("Pugres", data="purges")],
[Button.inline("Play", data="play"), Button.inline("Chat Cleaner", data="zombies")],
[Button.inline("Locks", data="locks"), Button.inline("Misc", data="misc")],
[Button.inline("Home", data="start")]]
HELP_TEXT = "Welcome To help Menu Section\n\nClick on the Buttons!"
@Zaid.on(events.NewMessage(pattern="[!?/]help"))
async def help(event):
if event.is_group:
await event.reply("Contact me in PM to get available help menu!", buttons=[
[Button.url("Help And Commands!", "t.me/{}?start=help".format(BOT_USERNAME))]])
return
await event.reply(HELP_TEXT, buttons=btn)
@Zaid.on(events.NewMessage(pattern="^/start help"))
async def _(event):
await event.reply(HELP_TEXT, buttons=btn)
@Zaid.on(events.callbackquery.CallbackQuery(data="help"))
async def _(event):
await event.edit(HELP_TEXT, buttons=btn)
|