From eaf2ad0d27b1f78623fe54935476cbfee2f3547e Mon Sep 17 00:00:00 2001 From: "ZetGo | Aleksej K." Date: Mon, 16 Jun 2025 15:48:34 +0300 Subject: [PATCH] [+] 'Method is not mounted...' fix --- heroku/log.py | 4 ++-- heroku/modules/api_protection.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/heroku/log.py b/heroku/log.py index 6b816ae..1cdbd9b 100644 --- a/heroku/log.py +++ b/heroku/log.py @@ -332,13 +332,13 @@ class TelegramLogsHandler(logging.Handler): reply_markup=self._gen_web_debug_button(item), ) - await call.answer( + self.inline.bot(await call.answer( ( "Web debugger started. You can get PIN using .debugger command. \n⚠️" " !DO NOT GIVE IT TO ANYONE! ⚠️" ), show_alert=True, - ) + )) def get_logid_by_client(self, client_id: int) -> int: return self._mods[client_id].logchat diff --git a/heroku/modules/api_protection.py b/heroku/modules/api_protection.py index 2cc28fc..36874fb 100644 --- a/heroku/modules/api_protection.py +++ b/heroku/modules/api_protection.py @@ -214,7 +214,7 @@ class APIRatelimiterMod(loader.Module): return logging.getLogger().handlers[0].web_debugger async def _show_pin(self, call: InlineCall): - await call.answer(f"Werkzeug PIN: {self._debugger.pin}", show_alert=True) + self.inline.bot(await call.answer(f"Werkzeug PIN: {self._debugger.pin}", show_alert=True)) @loader.command() async def debugger(self, message: Message):