mirror of
https://github.com/caronc/apprise.git
synced 2024-12-13 10:21:51 +01:00
Updated Notify_telegram (markdown)
parent
8bdd656c1f
commit
b5e4534e4a
@ -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/
|
||||
```
|
Loading…
Reference in New Issue
Block a user