mirror of
https://github.com/paul-nameless/tg
synced 2024-11-22 11:53:08 +00:00
Fix show help
This commit is contained in:
commit
8bc12644a5
1 changed files with 2 additions and 2 deletions
|
@ -78,13 +78,13 @@ class Controller:
|
||||||
|
|
||||||
@bind(chat_handler, ["?"])
|
@bind(chat_handler, ["?"])
|
||||||
def show_chat_help(self):
|
def show_chat_help(self):
|
||||||
_help = self.format_help(chat)
|
_help = self.format_help(chat_handler)
|
||||||
with suspend(self.view) as s:
|
with suspend(self.view) as s:
|
||||||
s.run_with_input(config.HELP_CMD, _help)
|
s.run_with_input(config.HELP_CMD, _help)
|
||||||
|
|
||||||
@bind(msg_handler, ["?"])
|
@bind(msg_handler, ["?"])
|
||||||
def show_msg_help(self):
|
def show_msg_help(self):
|
||||||
_help = self.format_help(msg)
|
_help = self.format_help(msg_handler)
|
||||||
with suspend(self.view) as s:
|
with suspend(self.view) as s:
|
||||||
s.run_with_input(config.HELP_CMD, _help)
|
s.run_with_input(config.HELP_CMD, _help)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue