-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f84610d
commit 6d988bf
Showing
12 changed files
with
1,423 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
from .extras import * | ||
from .help import * | ||
from .play import * | ||
from .queue import * | ||
from .settings import * | ||
from .speed import * | ||
from .start import * | ||
from .sudolist import * | ||
from .playlist import * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
from pyrogram.types import InlineKeyboardButton, InlineKeyboardMarkup | ||
|
||
from config import SUPPORT_CHAT | ||
|
||
|
||
def botplaylist_markup(_): | ||
buttons = [ | ||
[ | ||
InlineKeyboardButton(text=_["S_B_9"], url=SUPPORT_CHAT), | ||
InlineKeyboardButton(text=_["CLOSE_BUTTON"], callback_data="close"), | ||
], | ||
] | ||
return buttons | ||
|
||
|
||
def close_markup(_): | ||
upl = InlineKeyboardMarkup( | ||
[ | ||
[ | ||
InlineKeyboardButton( | ||
text="🥀 ꜱᴜᴘᴘᴏʀᴛ 🥀", url=f"https://t.me/BRANDED_WORLD" | ||
), | ||
InlineKeyboardButton( | ||
text=_["CLOSE_BUTTON"], | ||
callback_data="close", | ||
), | ||
] | ||
] | ||
) | ||
return upl | ||
|
||
|
||
def supp_markup(_): | ||
upl = InlineKeyboardMarkup( | ||
[ | ||
[ | ||
InlineKeyboardButton( | ||
text=_["S_B_9"], | ||
url=SUPPORT_CHAT, | ||
), | ||
] | ||
] | ||
) | ||
return upl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,229 @@ | ||
from typing import Union | ||
|
||
from pyrogram.types import InlineKeyboardButton, InlineKeyboardMarkup | ||
|
||
from Spotify_Music import app | ||
|
||
|
||
def first_page(_): | ||
controll_button = [ | ||
InlineKeyboardButton(text="๏ ᴍᴇɴᴜ ๏", callback_data=f"settingsback_helper"), | ||
InlineKeyboardButton(text="๏ ɴᴇxᴛ ๏", callback_data=f"dilXaditi"), | ||
] | ||
first_page_menu = InlineKeyboardMarkup( | ||
[ | ||
[ | ||
InlineKeyboardButton( | ||
text=_["H_B_1"], callback_data="help_callback hb1" | ||
), | ||
InlineKeyboardButton( | ||
text=_["H_B_2"], callback_data="help_callback hb2" | ||
), | ||
InlineKeyboardButton( | ||
text=_["H_B_3"], callback_data="help_callback hb3" | ||
), | ||
], | ||
[ | ||
InlineKeyboardButton( | ||
text=_["H_B_4"], callback_data="help_callback hb4" | ||
), | ||
InlineKeyboardButton( | ||
text=_["H_B_12"], callback_data="help_callback hb12" | ||
), | ||
InlineKeyboardButton( | ||
text=_["H_B_5"], callback_data="help_callback hb5" | ||
), | ||
], | ||
[ | ||
InlineKeyboardButton( | ||
text=_["H_B_6"], callback_data="help_callback hb6" | ||
), | ||
InlineKeyboardButton( | ||
text=_["H_B_10"], callback_data="help_callback hb10" | ||
), | ||
], | ||
[ | ||
InlineKeyboardButton( | ||
text=_["H_B_8"], callback_data="help_callback hb8" | ||
), | ||
InlineKeyboardButton( | ||
text=_["H_B_9"], callback_data="help_callback hb9" | ||
), | ||
], | ||
[ | ||
InlineKeyboardButton( | ||
text=_["H_B_11"], callback_data="help_callback hb11" | ||
) | ||
], | ||
controll_button, | ||
] | ||
) | ||
return first_page_menu | ||
|
||
|
||
def second_page(_): | ||
controll_button = [ | ||
InlineKeyboardButton(text="๏ ʙᴀᴄᴋ ๏", callback_data=f"settings_back_helper") | ||
] | ||
second_page_menu = InlineKeyboardMarkup( | ||
[ | ||
[ | ||
InlineKeyboardButton( | ||
text=_["H_B_7"], callback_data="help_callback hb7" | ||
), | ||
InlineKeyboardButton( | ||
text=_["H_B_19"], callback_data="help_callback hb19" | ||
), | ||
InlineKeyboardButton( | ||
text=_["H_B_14"], callback_data="help_callback hb14" | ||
), | ||
], | ||
[ | ||
InlineKeyboardButton( | ||
text=_["H_B_15"], callback_data="help_callback hb15" | ||
), | ||
InlineKeyboardButton( | ||
text=_["H_B_16"], callback_data="help_callback hb16" | ||
), | ||
InlineKeyboardButton( | ||
text=_["H_B_17"], callback_data="help_callback hb17" | ||
), | ||
], | ||
[ | ||
InlineKeyboardButton( | ||
text=_["H_B_18"], callback_data="help_callback hb18" | ||
), | ||
InlineKeyboardButton( | ||
text=_["H_B_13"], callback_data="help_callback hb13" | ||
), | ||
], | ||
[ | ||
InlineKeyboardButton( | ||
text=_["H_B_20"], callback_data="help_callback hb20" | ||
), | ||
InlineKeyboardButton( | ||
text=_["H_B_22"], callback_data="help_callback hb22" | ||
), | ||
], | ||
[ | ||
InlineKeyboardButton( | ||
text=_["H_B_21"], callback_data="help_callback hb21" | ||
) | ||
], | ||
controll_button, | ||
] | ||
) | ||
return second_page_menu | ||
|
||
|
||
def help_pannel(_, START: Union[bool, int] = None): | ||
first = [InlineKeyboardButton(text=_["CLOSE_BUTTON"], callback_data=f"close")] | ||
second = [ | ||
InlineKeyboardButton( | ||
text=_["BACK_BUTTON"], | ||
callback_data=f"settingsback_helper", | ||
), | ||
] | ||
mark = second if START else first | ||
upl = InlineKeyboardMarkup( | ||
[ | ||
[ | ||
InlineKeyboardButton( | ||
text=_["H_B_1"], | ||
callback_data="help_callback hb1", | ||
), | ||
InlineKeyboardButton( | ||
text=_["H_B_2"], | ||
callback_data="help_callback hb2", | ||
), | ||
InlineKeyboardButton( | ||
text=_["H_B_3"], | ||
callback_data="help_callback hb3", | ||
), | ||
], | ||
[ | ||
InlineKeyboardButton( | ||
text=_["H_B_4"], | ||
callback_data="help_callback hb4", | ||
), | ||
InlineKeyboardButton( | ||
text=_["H_B_5"], | ||
callback_data="help_callback hb5", | ||
), | ||
InlineKeyboardButton( | ||
text=_["H_B_6"], | ||
callback_data="help_callback hb6", | ||
), | ||
], | ||
[ | ||
InlineKeyboardButton( | ||
text=_["H_B_7"], | ||
callback_data="help_callback hb7", | ||
), | ||
InlineKeyboardButton( | ||
text=_["H_B_8"], | ||
callback_data="help_callback hb8", | ||
), | ||
InlineKeyboardButton( | ||
text=_["H_B_9"], | ||
callback_data="help_callback hb9", | ||
), | ||
], | ||
[ | ||
InlineKeyboardButton( | ||
text=_["H_B_10"], | ||
callback_data="help_callback hb10", | ||
), | ||
InlineKeyboardButton( | ||
text=_["H_B_11"], | ||
callback_data="help_callback hb11", | ||
), | ||
InlineKeyboardButton( | ||
text=_["H_B_12"], | ||
callback_data="help_callback hb12", | ||
), | ||
], | ||
[ | ||
InlineKeyboardButton( | ||
text=_["H_B_13"], | ||
callback_data="help_callback hb13", | ||
), | ||
InlineKeyboardButton( | ||
text=_["H_B_14"], | ||
callback_data="help_callback hb14", | ||
), | ||
InlineKeyboardButton( | ||
text=_["H_B_15"], | ||
callback_data="help_callback hb15", | ||
), | ||
], | ||
mark, | ||
] | ||
) | ||
return upl | ||
|
||
|
||
def help_back_markup(_): | ||
upl = InlineKeyboardMarkup( | ||
[ | ||
[ | ||
InlineKeyboardButton( | ||
text=_["BACK_BUTTON"], | ||
callback_data=f"settings_back_helper", | ||
), | ||
] | ||
] | ||
) | ||
return upl | ||
|
||
|
||
def private_help_panel(_): | ||
buttons = [ | ||
[ | ||
InlineKeyboardButton( | ||
text=_["S_B_4"], | ||
url=f"https://t.me/{app.username}?start=help", | ||
), | ||
], | ||
] | ||
return buttons |
Oops, something went wrong.