2022-01-31 12:41:47 +00:00
|
|
|
|
""" inline section button """
|
|
|
|
|
|
|
|
|
|
from pyrogram.types import (
|
|
|
|
|
CallbackQuery,
|
|
|
|
|
InlineKeyboardButton,
|
|
|
|
|
InlineKeyboardMarkup,
|
|
|
|
|
Message,
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def stream_markup(user_id):
|
|
|
|
|
buttons = [
|
|
|
|
|
[
|
|
|
|
|
InlineKeyboardButton(text="• Mᴇɴᴜ", callback_data=f'cbmenu | {user_id}'),
|
|
|
|
|
InlineKeyboardButton(text="• Cʟᴏsᴇ", callback_data=f'cls'),
|
|
|
|
|
],
|
|
|
|
|
]
|
|
|
|
|
return buttons
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def menu_markup(user_id):
|
|
|
|
|
buttons = [
|
|
|
|
|
[
|
|
|
|
|
InlineKeyboardButton(text="⏹", callback_data=f'cbstop | {user_id}'),
|
|
|
|
|
InlineKeyboardButton(text="⏸", callback_data=f'cbpause | {user_id}'),
|
|
|
|
|
InlineKeyboardButton(text="▶️", callback_data=f'cbresume | {user_id}'),
|
|
|
|
|
],
|
|
|
|
|
[
|
|
|
|
|
InlineKeyboardButton(text="🔇", callback_data=f'cbmute | {user_id}'),
|
|
|
|
|
InlineKeyboardButton(text="🔊", callback_data=f'cbunmute | {user_id}'),
|
|
|
|
|
],
|
|
|
|
|
[
|
|
|
|
|
InlineKeyboardButton(text="🗑 Close", callback_data='cls'),
|
|
|
|
|
]
|
|
|
|
|
]
|
|
|
|
|
return buttons
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
close_mark = InlineKeyboardMarkup(
|
|
|
|
|
[
|
|
|
|
|
[
|
|
|
|
|
InlineKeyboardButton(
|
|
|
|
|
"🗑 Close", callback_data="cls"
|
|
|
|
|
)
|
|
|
|
|
]
|
|
|
|
|
]
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
back_mark = InlineKeyboardMarkup(
|
|
|
|
|
[
|
|
|
|
|
[
|
|
|
|
|
InlineKeyboardButton(
|
|
|
|
|
"🔙 Go Back", callback_data="cbmenu"
|
|
|
|
|
)
|
|
|
|
|
]
|
|
|
|
|
]
|
|
|
|
|
)
|
2022-02-02 11:06:10 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
confirm_board = InlineKeyboardMarkup(
|
|
|
|
|
[
|
|
|
|
|
[
|
|
|
|
|
InlineKeyboardButton(text="• End", callback_data="cbstop"),
|
|
|
|
|
InlineKeyboardButton(text="• Continue", callback_data="cls"),
|
|
|
|
|
]
|
|
|
|
|
]
|
|
|
|
|
)
|