Skip to content

Commit

Permalink
Merge AsmSafone#3
Browse files Browse the repository at this point in the history
Added Button For Inline Search
  • Loading branch information
AsmSafone authored Aug 26, 2021
2 parents 9112ce6 + 1401892 commit 9ce9989
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions plugins/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,9 @@ async def cb_handler(client: Client, query: CallbackQuery):
pass
elif query.data=="help":
buttons = [
[
InlineKeyboardButton("Search Songs Inline", switch_inline_query_current_chat=""),
],
[
InlineKeyboardButton("CHANNEL", url="https://t.me/AsmSafone"),
InlineKeyboardButton("SUPPORT", url="https://t.me/SafoTheBot"),
Expand All @@ -195,6 +198,9 @@ async def cb_handler(client: Client, query: CallbackQuery):
@Client.on_message(filters.command(["start", f"start@{USERNAME}"]))
async def start(client, message):
buttons = [
[
InlineKeyboardButton("Search Songs Inline", switch_inline_query_current_chat=""),
],
[
InlineKeyboardButton("CHANNEL", url="https://t.me/AsmSafone"),
InlineKeyboardButton("SUPPORT", url="https://t.me/SafoTheBot"),
Expand All @@ -217,6 +223,9 @@ async def start(client, message):
@Client.on_message(filters.command(["help", f"help@{USERNAME}"]))
async def help(client, message):
buttons = [
[
InlineKeyboardButton("Search Songs Inline", switch_inline_query_current_chat=""),
],
[
InlineKeyboardButton("CHANNEL", url="https://t.me/AsmSafone"),
InlineKeyboardButton("SUPPORT", url="https://t.me/SafoTheBot"),
Expand Down

0 comments on commit 9ce9989

Please sign in to comment.