MCPcopy Create free account
hub / github.com/AsmSafone/VideoPlayerBot / start

Function start

plugins/private.py:29–53  ·  view source on GitHub ↗
(client, message)

Source from the content-addressed store, hash-verified

27
28@Client.on_message(filters.command(["start", f"start@{USERNAME}"]))
29async def start(client, message):
30 buttons = [
31 [
32 InlineKeyboardButton("❔ HOW TO USE ME ❔", callback_data="help"),
33 ],
34 [
35 InlineKeyboardButton("📢 CHANNEL", url=f"https://t.me/{UPDATES_CHANNEL}"),
36 InlineKeyboardButton("SOURCE 📦", url=f"https://github.com/AsmSafone/VideoPlayerBot"),
37 ],
38 [
39 InlineKeyboardButton("🤖 ABOUT", callback_data="about"),
40 InlineKeyboardButton("CLOSE 🔒", callback_data="close"),
41 ],
42 [
43 InlineKeyboardButton("➕ ADD ME TO YOUR GROUP ➕", url=f"https://t.me/{USERNAME}?startgroup=true"),
44 ]
45 ]
46 reply_markup = InlineKeyboardMarkup(buttons)
47 if message.chat.type == 'private':
48 await message.reply_text(
49 START_TEXT,
50 reply_markup=reply_markup
51 )
52 else:
53 await message.reply_text(f"**{BOT_NAME} is Alive !** ✨")
54
55@Client.on_callback_query()
56async def cb_handler(client: Client, query: CallbackQuery):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected