fix: close button in .update

pull/60/head
Who? 2025-01-02 21:53:03 +10:00 committed by GitHub
parent fa40b8c515
commit 1eed9cacf0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 6 deletions

View File

@ -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],