async def wow_nice(client, cb): nice = cb.matches[0].group(1) != "False" if not nice: v_t = XTRA_CMD_LIST bttn = paginate_help(0, XTRA_CMD_LIST, "helpme", is_official=nice) else: v_t = CMD_LIST bttn = paginate_help(0, CMD_LIST, "helpme", is_official=nice) await cb.edit_message_text( f"Command List & Help \n**Total Commands :** `{len(v_t)}` \n**(C) @FRIDAYOT**", reply_markup=InlineKeyboardMarkup(bttn), )
async def get_back_vro(client, cb): page_number = int(cb.matches[0].group(1)) is_official = cb.matches[0].group(2) != "False" cmd_list = CMD_LIST if is_official else XTRA_CMD_LIST buttons = paginate_help(page_number, cmd_list, "helpme", is_official=is_official) txt = f"<b>FridayUserBot Commands</b> \n<b>Friday Version :</b> <i>{friday_version}</i> \n<b>Pyrogram Version :</b> <i>{__version__}</i> \n<b>Total Plugins Loaded :</b> <code>{len(CMD_LIST)}</code>" await cb.edit_message_text(txt, reply_markup=InlineKeyboardMarkup(buttons))
async def give_old_page(client, cb): current_page_number = int(cb.matches[0].group(1)) is_official = cb.matches[0].group(2) != "False" cmd_list = CMD_LIST if is_official else XTRA_CMD_LIST buttons = paginate_help( current_page_number - 1, cmd_list, "helpme", is_official=is_official ) await cb.edit_message_reply_markup(reply_markup=InlineKeyboardMarkup(buttons))
async def get_back_vro(client, cb): page_number = int(cb.matches[0].group(1)) is_official = True if cb.matches[0].group(2) == "False": is_official = False cmd_list = CMD_LIST if is_official else XTRA_CMD_LIST buttons = paginate_help(page_number, cmd_list, "helpme", is_official=is_official) nice_text = f"**FridayUserBot Commands & Help Menu!** \n\n**Friday Version :** __{friday_version}__ \n**PyroGram Version :** __{__version__}__ \n**Total Plugins Loaded :** __{len(CMD_LIST)}__" await cb.edit_message_text(nice_text, reply_markup=InlineKeyboardMarkup(buttons))
async def get_back_vro(client, cb): page_number = int(cb.matches[0].group(1)) is_official = True if cb.matches[0].group(2) == "False": is_official = False cmd_list = CMD_LIST if is_official else XTRA_CMD_LIST buttons = paginate_help(page_number, cmd_list, "helpme", is_official=is_official) nice_text = f"┏════❨ɢᴀʙᴜᴛ✘ᴜꜱᴇʀʙᴏᴛ❩═════ \n**┣ࣩࣧ✤͜͡➳Gabut-Userbot Commands & Help Menu!** \n\n**┣ࣩࣧ✤͜͡➳Gabut-Userbot Version :** __{friday_version}__ \n**┣ࣩࣧ✤͜͡➳PyroGram Version :** __{__version__}__ \n**┣ࣩࣧ✤͜͡➳Total Plugins Loaded :** __{len(CMD_LIST)}__ \n┗═══❨ᴄᴏᴘʏʀɪɢʜᴛ @rimgans❩════" await cb.edit_message_text(nice_text, reply_markup=InlineKeyboardMarkup(buttons))