-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhelp.py
20 lines (18 loc) · 771 Bytes
/
help.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
from pyrogram import Client, filters
from pyrogram.types import Message, InlineKeyboardMarkup, InlineKeyboardButton
from plugins.core.buttons import help_text, help_markup
@Client.on_message(filters=filters.command("help"))
async def help_message(client:Client, message:Message)->None:
try:
await client.get_chat_member("bots_universe", message.from_user.id)
except:
await message.reply_text(
"Join our [channel](t.me/bots_universe) to get my service. We are doing this completely for free!",
reply_markup=InlineKeyboardMarkup([[InlineKeyboardButton("@Bots_Universe", url="t.me/bots_universe")]])
)
return
await message.reply_text(
help_text,
reply_markup=help_markup
)
return