diff --git a/Branded/modules/helpers/inline.py b/Branded/modules/helpers/inline.py index cc75095..79a9eb3 100644 --- a/Branded/modules/helpers/inline.py +++ b/Branded/modules/helpers/inline.py @@ -1,86 +1,86 @@ -import asyncio - -from ... import * -from .buttons import * -from .wrapper import * -from pyrogram.types import * - - -async def help_menu_logo(answer): - image = None - if image: - thumb_image = image - else: - thumb_image = "https://te.legra.ph/file/11cfa74175b590014bd16.jpg" - button = paginate_plugins(0, plugs, "help") - answer.append( - InlineQueryResultPhoto( - photo_url=f"{thumb_image}", - title="🥀 Help Menu ✨", - thumb_url=f"{thumb_image}", - description=f"🥀 Open Help Menu Of Branded-Userbot ✨...", - caption=f""" -**🥀 Welcome To Help Menu Of -Branded Userbot » {__version__} ✨... - -Click On Below 🌺 Buttons To -Get Userbot Commands. - -🌷Powered By : [Branded](https://t.me/BRANDED_PAID_CC).** - """, - reply_markup=InlineKeyboardMarkup(button), - ) - ) - return answer - - -async def help_menu_text(answer): - from ... import __version__ - button = paginate_plugins(0, plugs, "help") - answer.append( - InlineQueryResultArticle( - title="🥀 Help Menu ✨", - input_message_content=InputTextMessageContent(f""" -**🥀 Welcome To Help Menu Of -Branded Userbot » {__version__} ✨... - -Click On Below 🌺 Buttons To -Get Userbot Commands. - -🌷Powered By : [Branded](https://t.me/BRANDED_PAID_CC).**""", - disable_web_page_preview=True - ), - reply_markup=InlineKeyboardMarkup(button), - ) - ) - return answer - - -async def run_async_inline(): - @bot.on_inline_query() - @inline_wrapper - async def inline_query_handler(bot, query): - text = query.query - if text.startswith("help_menu_logo"): - answer = [] - answer = await help_menu_logo(answer) - try: - await bot.answer_inline_query( - query.id, results=answer, cache_time=10 - ) - except Exception as e: - print(str(e)) - return - elif text.startswith("help_menu_text"): - answer = [] - answer = await help_menu_text(answer) - try: - await bot.answer_inline_query( - query.id, results=answer, cache_time=10 - ) - except Exception as e: - print(str(e)) - return - else: - return - +import asyncio + +from ... import * +from .buttons import * +from .wrapper import * +from pyrogram.types import * + + +async def help_menu_logo(answer): + image = None + if image: + thumb_image = image + else: + thumb_image = "https://telegra.ph/file/70a9de40d206782967c72.jpg" + button = paginate_plugins(0, plugs, "help") + answer.append( + InlineQueryResultPhoto( + photo_url=f"{thumb_image}", + title="🥀 Help Menu ✨", + thumb_url=f"{thumb_image}", + description=f"🥀 Open Help Menu Of Rise-Userbot ✨...", + caption=f""" +**🥀 Welcome To Help Menu Of +Branded Userbot » {__version__} ✨... + +Click On Below 🌺 Buttons To +Get Userbot Commands. + +🌷Powered By : [Hari](https://t.me/Rise_Ownerr).** + """, + reply_markup=InlineKeyboardMarkup(button), + ) + ) + return answer + + +async def help_menu_text(answer): + from ... import __version__ + button = paginate_plugins(0, plugs, "help") + answer.append( + InlineQueryResultArticle( + title="🥀 Help Menu ✨", + input_message_content=InputTextMessageContent(f""" +**🥀 Welcome To Help Menu Of +Rise Userbot » {__version__} ✨... + +Click On Below 🌺 Buttons To +Get Userbot Commands. + +🌷Powered By : [Hari](https://t.me/Rise_Ownerr).**""", + disable_web_page_preview=True + ), + reply_markup=InlineKeyboardMarkup(button), + ) + ) + return answer + + +async def run_async_inline(): + @bot.on_inline_query() + @inline_wrapper + async def inline_query_handler(bot, query): + text = query.query + if text.startswith("help_menu_logo"): + answer = [] + answer = await help_menu_logo(answer) + try: + await bot.answer_inline_query( + query.id, results=answer, cache_time=10 + ) + except Exception as e: + print(str(e)) + return + elif text.startswith("help_menu_text"): + answer = [] + answer = await help_menu_text(answer) + try: + await bot.answer_inline_query( + query.id, results=answer, cache_time=10 + ) + except Exception as e: + print(str(e)) + return + else: + return +