some fixes

This commit is contained in:
levina 2022-01-18 21:17:39 +07:00 committed by GitHub
parent b595b5edc5
commit 71e186568c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,8 +11,8 @@ from pyrogram import (
def stream_markup(user_id):
buttons = [
[
InlineKeyboardButton(text="• Mᴇɴ", callback_data="cbmenu"),
InlineKeyboardButton(text="• Cʟsᴇ", callback_data="cls"),
InlineKeyboardButton(text="• Mᴇɴ", callback_data=f'cbmenu | {user_id}'),
InlineKeyboardButton(text="• Cʟsᴇ", callback_data=f'cls'),
],
]
return buttons
@ -21,16 +21,16 @@ def stream_markup(user_id):
def menu_markup(user_id):
buttons = [
[
InlineKeyboardButton(text="", callback_data="cbstop"),
InlineKeyboardButton(text="", callback_data="cbresume"),
InlineKeyboardButton(text="▶️", callback_data="cbresume"),
InlineKeyboardButton(text="", callback_data=f'cbstop | {user_id}'),
InlineKeyboardButton(text="", callback_data=f'cbresume | {user_id}'),
InlineKeyboardButton(text="▶️", callback_data=f'cbresume | {user_id}'),
],
[
InlineKeyboardButton(text="🔇", callback_data="cbmute"),
InlineKeyboardButton(text="🔊", callback_data="cbunmute"),
InlineKeyboardButton(text="🔇", callback_data=f'cbmute | {user_id}'),
InlineKeyboardButton(text="🔊", callback_data=f'cbunmute | {user_id}'),
],
[
InlineKeyboardButton(text="🗑 Close", callback_data="cls"),
InlineKeyboardButton(text="🗑 Close", callback_data='cls'),
]
]
return buttons