From 1eed9cacf0be81043cb13c2c719c315b89a15b6c Mon Sep 17 00:00:00 2001 From: Who? <155328415+coddrago@users.noreply.github.com> Date: Thu, 2 Jan 2025 21:53:03 +1000 Subject: [PATCH] fix: close button in .update --- hikka/modules/updater.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/hikka/modules/updater.py b/hikka/modules/updater.py index ea64f6b..c137c77 100644 --- a/hikka/modules/updater.py +++ b/hikka/modules/updater.py @@ -209,18 +209,14 @@ class UpdaterMod(loader.Module): "text": self.strings("btn_update"), "callback": self.inline_update, }, - {"text": self.strings("cancel"), "callback": self.close}, + {"text": self.strings("cancel"), "action": "close"}, ], ) ): raise except Exception: await self.inline_update(message) - - async def close(self, msg_obj: typing.Union[InlineCall, Message], hard: bool = False,): - - await call.delete() - + async def inline_update( self, msg_obj: typing.Union[InlineCall, Message],