59 lines
1.2 KiB
Python
59 lines
1.2 KiB
Python
""" inline section button """
|
||
|
||
from pyrogram.types import (
|
||
CallbackQuery,
|
||
InlineKeyboardButton,
|
||
InlineKeyboardMarkup,
|
||
Message,
|
||
)
|
||
|
||
|
||
def stream_markup(user_id):
|
||
buttons = [
|
||
[
|
||
InlineKeyboardButton(text="• Mᴇɴᴜ", callback_data=f'stream_menu_panel | {user_id}'),
|
||
InlineKeyboardButton(text="• Cʟᴏsᴇ", callback_data=f'close_menu'),
|
||
],
|
||
]
|
||
return buttons
|
||
|
||
|
||
def menu_markup(user_id):
|
||
buttons = [
|
||
[
|
||
InlineKeyboardButton(text="⏹", callback_data=f'set_stop | {user_id}'),
|
||
InlineKeyboardButton(text="⏸", callback_data=f'set_pause | {user_id}'),
|
||
InlineKeyboardButton(text="▶️", callback_data=f'set_resume | {user_id}'),
|
||
],
|
||
[
|
||
InlineKeyboardButton(text="🔇", callback_data=f'set_mute | {user_id}'),
|
||
InlineKeyboardButton(text="🔊", callback_data=f'set_unmute | {user_id}'),
|
||
],
|
||
[
|
||
InlineKeyboardButton(text="🗑 Close", callback_data='close_menu'),
|
||
]
|
||
]
|
||
return buttons
|
||
|
||
|
||
close_mark = InlineKeyboardMarkup(
|
||
[
|
||
[
|
||
InlineKeyboardButton(
|
||
"🗑 Close", callback_data="close_menu"
|
||
)
|
||
]
|
||
]
|
||
)
|
||
|
||
|
||
back_mark = InlineKeyboardMarkup(
|
||
[
|
||
[
|
||
InlineKeyboardButton(
|
||
"🔙 Go Back", callback_data="stream_menu_panel"
|
||
)
|
||
]
|
||
]
|
||
)
|