2022-01-18 13:56:09 +00:00
|
|
|
|
""" inline section button """
|
|
|
|
|
|
2022-01-18 23:23:02 +00:00
|
|
|
|
from pyrogram.types import (
|
2022-01-18 13:56:09 +00:00
|
|
|
|
CallbackQuery,
|
|
|
|
|
InlineKeyboardButton,
|
|
|
|
|
InlineKeyboardMarkup,
|
|
|
|
|
Message,
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def stream_markup(user_id):
|
|
|
|
|
buttons = [
|
|
|
|
|
[
|
2022-01-18 14:17:39 +00:00
|
|
|
|
InlineKeyboardButton(text="• Mᴇɴᴜ", callback_data=f'cbmenu | {user_id}'),
|
|
|
|
|
InlineKeyboardButton(text="• Cʟᴏsᴇ", callback_data=f'cls'),
|
2022-01-18 13:56:09 +00:00
|
|
|
|
],
|
|
|
|
|
]
|
|
|
|
|
return buttons
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def menu_markup(user_id):
|
|
|
|
|
buttons = [
|
|
|
|
|
[
|
2022-01-18 14:17:39 +00:00
|
|
|
|
InlineKeyboardButton(text="⏹", callback_data=f'cbstop | {user_id}'),
|
2022-01-19 15:04:32 +00:00
|
|
|
|
InlineKeyboardButton(text="⏸", callback_data=f'cbpause | {user_id}'),
|
2022-01-18 14:17:39 +00:00
|
|
|
|
InlineKeyboardButton(text="▶️", callback_data=f'cbresume | {user_id}'),
|
2022-01-18 13:56:09 +00:00
|
|
|
|
],
|
|
|
|
|
[
|
2022-01-18 14:17:39 +00:00
|
|
|
|
InlineKeyboardButton(text="🔇", callback_data=f'cbmute | {user_id}'),
|
|
|
|
|
InlineKeyboardButton(text="🔊", callback_data=f'cbunmute | {user_id}'),
|
2022-01-18 13:56:09 +00:00
|
|
|
|
],
|
|
|
|
|
[
|
2022-01-18 14:17:39 +00:00
|
|
|
|
InlineKeyboardButton(text="🗑 Close", callback_data='cls'),
|
2022-01-18 13:56:09 +00:00
|
|
|
|
]
|
|
|
|
|
]
|
|
|
|
|
return buttons
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
close_mark = InlineKeyboardMarkup(
|
|
|
|
|
[
|
|
|
|
|
[
|
|
|
|
|
InlineKeyboardButton(
|
|
|
|
|
"🗑 Close", callback_data="cls"
|
|
|
|
|
)
|
|
|
|
|
]
|
|
|
|
|
]
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
back_mark = InlineKeyboardMarkup(
|
|
|
|
|
[
|
|
|
|
|
[
|
|
|
|
|
InlineKeyboardButton(
|
|
|
|
|
"🔙 Go Back", callback_data="cbmenu"
|
|
|
|
|
)
|
|
|
|
|
]
|
|
|
|
|
]
|
|
|
|
|
)
|