Spaces:
Runtime error
Runtime error
File size: 1,221 Bytes
5126418 |
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 34 35 36 37 38 |
from telethon import events, Button
from Zaid import Zaid
from Zaid.status import *
from Config import Config
from telethon.tl.functions.channels import EditAdminRequest
from telethon.tl.types import ChatAdminRights
from telethon.tl.functions.users import GetFullUserRequest
from telethon.tl.functions.messages import ExportChatInviteRequest
@Zaid.on(events.callbackquery.CallbackQuery(data="admin"))
async def _(event):
await event.edit(ADMIN_TEXT, buttons=[[Button.inline("« Bᴀᴄᴋ", data="help")]])
@Zaid.on(events.callbackquery.CallbackQuery(data="play"))
async def _(event):
await event.edit(PLAY_TEXT, buttons=[[Button.inline("« Bᴀᴄᴋ", data="help")]])
ADMIN_TEXT = """
**✘ A module from which admins of the chat can use!**
‣ `?end` - To End music streaming.
‣ `?skip` - To Skip Tracks Going on.
‣ `?pause` - To Pause streaming.
‣ `?resume` - to Resume Streaming.
‣ `?leavevc` - force The Userbot to leave Vc Chat (Sometimes Joined).
‣ `?playlist` - to check playlists.
"""
PLAY_TEXT = """
**✘ A module from which users of the chat can use!**
‣ `?play` - To Play Audio from Else Reply to audio file.
‣ `?vplay` - To Stream Videos (HEROKU_MODE > Doesn't support).
"""
|