Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Format code.
  • Loading branch information
KSKOP69 authored Nov 7, 2024
2 parents f2a75ee + eb53104 commit a2c3b77
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 17 deletions.
9 changes: 7 additions & 2 deletions AlexaMusic/platforms/Telegram.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,12 @@

import config
from AlexaMusic import app
from AlexaMusic.utils.formatters import check_duration, convert_bytes, get_readable_time, seconds_to_min
from AlexaMusic.utils.formatters import (
check_duration,
convert_bytes,
get_readable_time,
seconds_to_min,
)


class TeleAPI:
Expand Down Expand Up @@ -179,4 +184,4 @@ async def progress(current, total):
if not verify:
return False
config.lyrical.pop(mystic.id)
return True
return True
18 changes: 4 additions & 14 deletions AlexaMusic/utils/inline/play.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,7 @@ def stream_markup_timer(_, videoid, chat_id, played, dur):
text=_["PL_B_2"],
callback_data=f"add_playlist {videoid}",
),
InlineKeyboardButton(
text="𝖮𝗐𝗇𝖾𝗋", url=f"https://t.me/Jankari_Ki_Duniya"
),
InlineKeyboardButton(text="𝖮𝗐𝗇𝖾𝗋", url=f"https://t.me/Jankari_Ki_Duniya"),
],
[
InlineKeyboardButton(
Expand Down Expand Up @@ -86,9 +84,7 @@ def telegram_markup_timer(_, videoid, chat_id, played, dur):
text=_["PL_B_2"],
callback_data=f"add_playlist {videoid}",
),
InlineKeyboardButton(
text="𝖮𝗐𝗇𝖾𝗋", url=f"https://t.me/Jankari_Ki_Duniya"
),
InlineKeyboardButton(text="𝖮𝗐𝗇𝖾𝗋", url=f"https://t.me/Jankari_Ki_Duniya"),
],
[
InlineKeyboardButton(
Expand All @@ -111,9 +107,7 @@ def stream_markup(_, videoid, chat_id):
text=_["PL_B_2"],
callback_data=f"add_playlist {videoid}",
),
InlineKeyboardButton(
text="𝖮𝗐𝗇𝖾𝗋", url=f"https://t.me/Jankari_Ki_Duniya"
),
InlineKeyboardButton(text="𝖮𝗐𝗇𝖾𝗋", url=f"https://t.me/Jankari_Ki_Duniya"),
],
[
InlineKeyboardButton(
Expand Down Expand Up @@ -332,10 +326,6 @@ def queue_markup(_, videoid, chat_id):
InlineKeyboardButton(text="‣‣I", callback_data=f"ADMIN Skip|{chat_id}"),
InlineKeyboardButton(text="▢", callback_data=f"ADMIN Stop|{chat_id}"),
],
[
InlineKeyboardButton(
text="𝖢𝗅𝗈𝗌𝖾", callback_data=f"ADMIN CloseA|{chat_id}"
)
],
[InlineKeyboardButton(text="𝖢𝗅𝗈𝗌𝖾", callback_data=f"ADMIN CloseA|{chat_id}")],
]
return buttons
2 changes: 1 addition & 1 deletion AlexaMusic/utils/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ async def play_logs(message, streamtype):
)
except:
pass
return
return

0 comments on commit a2c3b77

Please sign in to comment.