Skip to content
This repository was archived by the owner on May 15, 2021. It is now read-only.

Commit

Permalink
Update inline_help.py
Browse files Browse the repository at this point in the history
  • Loading branch information
code-rgb authored Nov 22, 2020
1 parent f700cc7 commit 765ce7c
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions userge/plugins/bot/inline_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,6 @@
"help_txt": "**Lastest Ofox Recovery for supported device, Powered By offcial Ofox API v2**\n\n>>> `ofox <device codename>`",
"i_q": "ofox whyred",
},
"rick": {
"help_txt": "**Useless Rick Roll**\n\nBasically a wierd looking button with rickroll link xD\n>>> `rick`",
"i_q": "rick",
},
"reddit": {
"help_txt": '**Get Reddit Image post**\n\nGet Random Reddit meme or a post from specific subreddit, if you want post from specific subreddit do "reddit [subreddit]."\n>>> `reddit or reddit dankmemes.`',
"i_q": "reddit nextfuckinglevel.",
Expand All @@ -53,7 +49,7 @@
"i_q": "stylish USERGE-X",
},
"ytdl": {
"help_txt": "**Download Youtube Videos with Buttons**\n\nTo Download video from youtube with desired quality.\n>>> `ytdl [link]`",
"help_txt": f"**Download Youtube Videos with Buttons**\n\nTo Download video from youtube with desired quality.\n>>> `ytdl [link]` or `{Config.CMD_TRIGGER}iytdl`",
"i_q": "ytdl https://www.youtube.com/watch?v=dQw4w9WgXcQ",
},
"spoiler": {
Expand Down Expand Up @@ -84,10 +80,10 @@ def help_btn_generator():

BACK_BTN = InlineKeyboardButton(" ◀️ Back ", callback_data="backbtn_ihelp")

inline_help_txt = " <u><b>INLINE COMMANDS</b></u>\n\nHere is a list of all available inline commands.\nChoose a command and for usage see: [ **📕 EXAMPLE** ]"
inline_help_txt = " <u><b>INLINE COMMANDS</b></u>\n\nHere is a list of all available inline commands.\nChoose a command and for usage see:\n[ **📕 EXAMPLE** ]"

@userge.bot.on_message(
filters.user(Config.OWNER_ID)
filters.user(list(Config.OWNER_ID))
& filters.private
& (filters.command("inline") | filters.regex(pattern=r"^/start inline$"))
)
Expand All @@ -99,7 +95,7 @@ async def inline_help(_, message: Message):
)

@userge.bot.on_callback_query(
filters.user(Config.OWNER_ID) & filters.regex(pattern=r"^backbtn_ihelp$")
filters.user(list(Config.OWNER_ID)) & filters.regex(pattern=r"^backbtn_ihelp$")
)
async def back_btn(_, c_q: CallbackQuery):
await c_q.edit_message_text(
Expand Down

0 comments on commit 765ce7c

Please sign in to comment.