diff --git a/src/commands.js b/src/commands.js index 4f47efb4..934aaa0b 100644 --- a/src/commands.js +++ b/src/commands.js @@ -51,19 +51,25 @@ commands.help = (sender, args, reply, app, evt) => { if (app.managementRooms.includes(evt.room_id)) { replyMsg += "This is a management room: prefixing commands with `$cmdprefix` is not required.\n" } else { - replyMsg += "This is not a management room: you must prefix commands with `$cmdprefix`.\n" + replyMsg += "**This is not a management room**: you must prefix commands with `$cmdprefix`.\n" } replyMsg += ` +_**Generic bridge commands**: commands for using the bridge that aren't related to Telegram._
**help** - Show this help message.
-**cancel** - Cancel an ongoing action (such as login). - -**login** <_phone_> - Request an authentication code.
-**logout** - Log out from Telegram. Currently broken. - -**setManagement** - Mark the room as a management room. +**cancel** - Cancel an ongoing action (such as login).
+**setManagement** - Mark the room as a management room.
**unsetManagement** - Undo management room marking. -**api** <_method_> <_args_> - Call a Telegram API method. Args is always a JSON object. Disabled by default. +_**Telegram actions**: commands for using the bridge to interact with Telegram._
+**login** <_phone_> - Request an authentication code.
+**logout** - Log out from Telegram.
+**search** [_-r|--remote_] <_query_> - Search your contacts or the Telegram servers for users. + +_**Temporary commands**: commands that will be replaced with more Matrix-y actions later._
+**pm** <_id_> - Open a private chat with the given Telegram user ID. + +_**Debug commands**: commands to help in debugging the bridge. Disabled by default._
+**api** <_method_> <_args_> - Call a Telegram API method. Args is always a single JSON object. ` reply(replyMsg, { allowHTML: true }) }