From b5e4534e4adf9af78da1d283a8ee4bbcb993d253 Mon Sep 17 00:00:00 2001 From: Chris Caron Date: Thu, 28 Dec 2023 12:09:45 -0500 Subject: [PATCH] Updated Notify_telegram (markdown) --- Notify_telegram.md | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/Notify_telegram.md b/Notify_telegram.md index b4bd440..3064c03 100644 --- a/Notify_telegram.md +++ b/Notify_telegram.md @@ -46,17 +46,18 @@ When using the short form of the Telegram/Apprise URL and the bot owner (probabl ### Syntax The following syntax is valid: -* **tgram**://**{bot_token}**/ +* `tgram://{bot_token}/` * **Note**: As already identified above: Apprise is clever enough to determine the chat_id of the bot owner (you) _only if you've sent it at least 1 private message to it_ first. -* **tgram**://**{bot_token}**/**{chat_id}**/ -* **tgram**://**{bot_token}**/**{chat_id1}**/**{chat_id2}**/**{chat_id3}**/ - +* `tgram://{bot_token}/{chat_id}/` +* `tgram://{bot_token}/{chat_id1}/{chat_id2}/{chat_id3}/` +* `tgram://{bot_token}/{chat_id}:{topic}/` +* `tgram://{bot_token}/{chat_id1}:topic1}/{chat_id2}:{topic2}/{chat_id3}:{topic3}/` If you want to see the icon/image associated with the notification, you can have it come through by adding a **?image=yes** to your URL string like so: -* **tgram**://**{bot_token}**/**?image=Yes** -* **tgram**://**{bot_token}**/**{chat_id}**/**?image=Yes** -* **tgram**://**{bot_token}**/**{chat_id1}**/**{chat_id2}**/**{chat_id3}**/**?image=Yes** +* `tgram://{bot_token}/?image=Yes` +* `tgram://{bot_token}/{chat_id}/?image=Yes` +* `tgram://{bot_token}/{chat_id1}/{chat_id2}/{chat_id3}/?image=Yes` ### Parameter Breakdown | Variable | Required | Description @@ -86,3 +87,12 @@ Got a specific topic you want to notify? apprise -vv -t "Test Message Title" -b "Test Message Body" \ tgram://123456789:abcdefg_hijklmnop/12315544/?topic=1234567 ``` + +Topics can also be assigned per chat id: +```bash +# Assuming our {bot_token} is 123456789:abcdefg_hijklmnop +# Assuming the {chat_id} belonging to lead2gold is 12315544 +# Assuming the {topic_id} is 1234567 +apprise -vv -t "Test Message Title" -b "Test Message Body" \ + tgram://123456789:abcdefg_hijklmnop/12315544:1234567/ +``` \ No newline at end of file