mirror of https://github.com/coddrago/Heroku
fix: close button in .update
parent
fa40b8c515
commit
1eed9cacf0
|
@ -209,7 +209,7 @@ 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"},
|
||||
],
|
||||
)
|
||||
):
|
||||
|
@ -217,10 +217,6 @@ class UpdaterMod(loader.Module):
|
|||
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],
|
||||
|
|
Loading…
Reference in New Issue