Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Badhacker98 authored Aug 9, 2024
1 parent f84610d commit 6d988bf
Show file tree
Hide file tree
Showing 12 changed files with 1,423 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Spotify_Music/utils/inline/__init__.py
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 *
44 changes: 44 additions & 0 deletions Spotify_Music/utils/inline/extras.py
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
229 changes: 229 additions & 0 deletions Spotify_Music/utils/inline/help.py
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
Loading

0 comments on commit 6d988bf

Please sign in to comment.