(client, message)
| 27 | |
| 28 | @Client.on_message(filters.command(["start", f"start@{USERNAME}"])) |
| 29 | async 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() |
| 56 | async def cb_handler(client: Client, query: CallbackQuery): |
nothing calls this directly
no outgoing calls
no test coverage detected