Updated Notify_telegram (markdown)

Chris Caron 2023-12-28 12:09:45 -05:00
parent 8bdd656c1f
commit b5e4534e4a

@ -46,17 +46,18 @@ When using the short form of the Telegram/Apprise URL and the bot owner (probabl
### Syntax ### Syntax
The following syntax is valid: 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. * **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_id}/`
* **tgram**://**{bot_token}**/**{chat_id1}**/**{chat_id2}**/**{chat_id3}**/ * `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: 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}/?image=Yes`
* **tgram**://**{bot_token}**/**{chat_id}**/**?image=Yes** * `tgram://{bot_token}/{chat_id}/?image=Yes`
* **tgram**://**{bot_token}**/**{chat_id1}**/**{chat_id2}**/**{chat_id3}**/**?image=Yes** * `tgram://{bot_token}/{chat_id1}/{chat_id2}/{chat_id3}/?image=Yes`
### Parameter Breakdown ### Parameter Breakdown
| Variable | Required | Description | 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" \ apprise -vv -t "Test Message Title" -b "Test Message Body" \
tgram://123456789:abcdefg_hijklmnop/12315544/?topic=1234567 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/
```