mirror of https://github.com/coddrago/Heroku
[+] 'Method is not mounted...' fix
parent
238df7552a
commit
eaf2ad0d27
|
@ -332,13 +332,13 @@ class TelegramLogsHandler(logging.Handler):
|
||||||
reply_markup=self._gen_web_debug_button(item),
|
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⚠️"
|
"Web debugger started. You can get PIN using .debugger command. \n⚠️"
|
||||||
" !DO NOT GIVE IT TO ANYONE! ⚠️"
|
" !DO NOT GIVE IT TO ANYONE! ⚠️"
|
||||||
),
|
),
|
||||||
show_alert=True,
|
show_alert=True,
|
||||||
)
|
))
|
||||||
|
|
||||||
def get_logid_by_client(self, client_id: int) -> int:
|
def get_logid_by_client(self, client_id: int) -> int:
|
||||||
return self._mods[client_id].logchat
|
return self._mods[client_id].logchat
|
||||||
|
|
|
@ -214,7 +214,7 @@ class APIRatelimiterMod(loader.Module):
|
||||||
return logging.getLogger().handlers[0].web_debugger
|
return logging.getLogger().handlers[0].web_debugger
|
||||||
|
|
||||||
async def _show_pin(self, call: InlineCall):
|
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()
|
@loader.command()
|
||||||
async def debugger(self, message: Message):
|
async def debugger(self, message: Message):
|
||||||
|
|
Loading…
Reference in New Issue