From db88fbb6940f7d23ee2a8d57d928d37f019e1e75 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Sun, 15 Jan 2023 19:05:24 +0200 Subject: [PATCH] Remove internal ID from pm command help (ref #882) --- mautrix_telegram/commands/telegram/misc.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/mautrix_telegram/commands/telegram/misc.py b/mautrix_telegram/commands/telegram/misc.py index 74ba53c8..65e3486b 100644 --- a/mautrix_telegram/commands/telegram/misc.py +++ b/mautrix_telegram/commands/telegram/misc.py @@ -134,15 +134,16 @@ async def search(evt: CommandEvent) -> EventID: @command_handler( help_section=SECTION_CREATING_PORTALS, - help_args="<_identifier_>", - help_text="Open a private chat with the given Telegram user. The identifier is " - "either the internal user ID, the username or the phone number. " - "**N.B.** The phone numbers you start chats with must already be in " - "your contacts.", + help_args="<_username_>", + help_text=( + "Open a private chat with the given Telegram user. You can also use a " + "phone number instead of username, but you must have the number in " + "your Telegram contacts for that to work." + ), ) async def pm(evt: CommandEvent) -> EventID: if len(evt.args) == 0: - return await evt.reply("**Usage:** `$cmdprefix+sp pm `") + return await evt.reply("**Usage:** `$cmdprefix+sp pm `") try: id = "".join(evt.args).translate({ord(c): None for c in "+()- "})