[+] 'Method is not mounted...' fix

pull/156/head
ZetGo | Aleksej K. 2025-06-16 15:48:34 +03:00
parent 238df7552a
commit eaf2ad0d27
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -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):