This commit is contained in:
Yasir Aris M 2024-07-30 08:30:18 +07:00 committed by GitHub
parent 1e9b9716ce
commit 7d96a64b48
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -358,7 +358,7 @@ async def shell_cmd(self: Client, ctx: Message, strings):
[ [
InlineKeyboardButton( InlineKeyboardButton(
text=strings("cl_btn"), text=strings("cl_btn"),
callback_data=f"close#{ctx.from_user.id}", callback_data=f"close#{ctx.from_user.id if ctx.from_user else self.me.id}",
) )
] ]
] ]
@ -376,7 +376,7 @@ async def shell_cmd(self: Client, ctx: Message, strings):
[ [
InlineKeyboardButton( InlineKeyboardButton(
text=strings("cl_btn"), text=strings("cl_btn"),
callback_data=f"close#{ctx.from_user.id}", callback_data=f"close#{ctx.from_user.id if ctx.from_user else self.me.id}",
) )
] ]
] ]
@ -504,7 +504,7 @@ async def cmd_eval(self: Client, ctx: Message, strings) -> Optional[str]:
[ [
InlineKeyboardButton( InlineKeyboardButton(
text=strings("cl_btn"), text=strings("cl_btn"),
callback_data=f"close#{ctx.from_user.id}", callback_data=f"close#{ctx.from_user.id if ctx.from_user else self.me.id}",
) )
] ]
] ]
@ -522,7 +522,7 @@ async def cmd_eval(self: Client, ctx: Message, strings) -> Optional[str]:
[ [
InlineKeyboardButton( InlineKeyboardButton(
text=strings("cl_btn"), text=strings("cl_btn"),
callback_data=f"close#{ctx.from_user.id}", callback_data=f"close#{ctx.from_user.id if ctx.from_user else self.me.id}",
) )
] ]
] ]