change data inline

This commit is contained in:
levina 2022-02-07 22:06:00 +07:00 committed by GitHub
parent 020821fdbe
commit a8b351e21e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,8 +11,8 @@ from pyrogram.types import (
def stream_markup(user_id):
buttons = [
[
InlineKeyboardButton(text="• Mᴇɴ", callback_data=f'cbmenu | {user_id}'),
InlineKeyboardButton(text="• Cʟsᴇ", callback_data=f'cls'),
InlineKeyboardButton(text="• Mᴇɴ", callback_data=f'stream_menu_panel | {user_id}'),
InlineKeyboardButton(text="• Cʟsᴇ", callback_data=f'close_menu'),
],
]
return buttons
@ -21,16 +21,16 @@ def stream_markup(user_id):
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'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'cbmute | {user_id}'),
InlineKeyboardButton(text="🔊", callback_data=f'cbunmute | {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='cls'),
InlineKeyboardButton(text="🗑 Close", callback_data='close_menu'),
]
]
return buttons
@ -40,7 +40,7 @@ close_mark = InlineKeyboardMarkup(
[
[
InlineKeyboardButton(
"🗑 Close", callback_data="cls"
"🗑 Close", callback_data="close_menu"
)
]
]
@ -51,7 +51,7 @@ back_mark = InlineKeyboardMarkup(
[
[
InlineKeyboardButton(
"🔙 Go Back", callback_data="cbmenu"
"🔙 Go Back", callback_data="stream_menu_panel"
)
]
]