2022-01-31 12:41:47 +00:00
|
|
|
""" inline section button """
|
|
|
|
|
|
|
|
from pyrogram.types import (
|
|
|
|
InlineKeyboardButton,
|
|
|
|
InlineKeyboardMarkup,
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
def stream_markup(user_id):
|
|
|
|
buttons = [
|
|
|
|
[
|
2022-03-02 13:01:45 +00:00
|
|
|
InlineKeyboardButton(text="• 菜单", callback_data=f'stream_menu_panel | {user_id}'),
|
|
|
|
InlineKeyboardButton(text="• 关闭", callback_data=f'set_close'),
|
2022-01-31 12:41:47 +00:00
|
|
|
],
|
|
|
|
]
|
|
|
|
return buttons
|
|
|
|
|
|
|
|
|
|
|
|
def menu_markup(user_id):
|
|
|
|
buttons = [
|
|
|
|
[
|
2022-02-07 15:06:00 +00:00
|
|
|
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}'),
|
2022-01-31 12:41:47 +00:00
|
|
|
],
|
|
|
|
[
|
2022-02-07 15:06:00 +00:00
|
|
|
InlineKeyboardButton(text="🔇", callback_data=f'set_mute | {user_id}'),
|
|
|
|
InlineKeyboardButton(text="🔊", callback_data=f'set_unmute | {user_id}'),
|
2022-01-31 12:41:47 +00:00
|
|
|
],
|
|
|
|
[
|
2022-03-02 13:01:45 +00:00
|
|
|
InlineKeyboardButton(text="🔙 返回", callback_data='stream_home_panel'),
|
2022-01-31 12:41:47 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
return buttons
|
|
|
|
|
|
|
|
|
|
|
|
close_mark = InlineKeyboardMarkup(
|
|
|
|
[
|
|
|
|
[
|
|
|
|
InlineKeyboardButton(
|
2022-03-02 13:01:45 +00:00
|
|
|
"🗑 关闭", callback_data="set_close"
|
2022-01-31 12:41:47 +00:00
|
|
|
)
|
|
|
|
]
|
|
|
|
]
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
back_mark = InlineKeyboardMarkup(
|
|
|
|
[
|
|
|
|
[
|
|
|
|
InlineKeyboardButton(
|
2022-03-02 13:01:45 +00:00
|
|
|
"🔙 返回", callback_data="stream_menu_panel"
|
2022-01-31 12:41:47 +00:00
|
|
|
)
|
|
|
|
]
|
|
|
|
]
|
|
|
|
)
|