mirror of https://github.com/caronc/apprise
Updated Notify_telegram (markdown)
parent
7a4ae7372a
commit
731727c4d3
|
@ -68,6 +68,7 @@ If you want to see the icon/image associated with the notification, you can have
|
||||||
| format | No | The default value of this is _text_. But if you plan on managing the format yourself, you can optionally set this to _markdown_ or _html_ as well.
|
| format | No | The default value of this is _text_. But if you plan on managing the format yourself, you can optionally set this to _markdown_ or _html_ as well.
|
||||||
| silent | No | A `yes/no` flag allowing you to send the notification in a silent fashion. By default this is set to `no`.
|
| silent | No | A `yes/no` flag allowing you to send the notification in a silent fashion. By default this is set to `no`.
|
||||||
| preview | No | A `yes/no` flag allowing you to display webpage previews of your post. By default this is set to `no`.
|
| preview | No | A `yes/no` flag allowing you to display webpage previews of your post. By default this is set to `no`.
|
||||||
|
| mdv | No | Optionally set the `markdown` version to use; can be set to either `v1` or `v2` and defaults to `v2` if not set. This value is only referenced when `?format=markdown` has also been set.
|
||||||
| topic | No | The Topic Thread ID you wish your message to be posted to. [Here is a StackOverflow post on acquiring the Topic Thread ID](https://stackoverflow.com/questions/74773675/how-to-get-topic-id-for-telegram-group-chat)
|
| topic | No | The Topic Thread ID you wish your message to be posted to. [Here is a StackOverflow post on acquiring the Topic Thread ID](https://stackoverflow.com/questions/74773675/how-to-get-topic-id-for-telegram-group-chat)
|
||||||
|
|
||||||
#### Example
|
#### Example
|
||||||
|
@ -79,6 +80,15 @@ apprise -vv -t "Test Message Title" -b "Test Message Body" \
|
||||||
tgram://123456789:abcdefg_hijklmnop/12315544/
|
tgram://123456789:abcdefg_hijklmnop/12315544/
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Want to use the Telegram Markdown features; do this instead:
|
||||||
|
```bash
|
||||||
|
# Assuming our {bot_token} is 123456789:abcdefg_hijklmnop
|
||||||
|
# Assuming the {chat_id} belonging to lead2gold is 12315544
|
||||||
|
# We enforce the output format to be markown in this example
|
||||||
|
apprise -vv -t "Test Message Title" -b "Test Message Body" \
|
||||||
|
tgram://123456789:abcdefg_hijklmnop/12315544/?format=markdown
|
||||||
|
```
|
||||||
|
|
||||||
Got a specific topic you want to notify?
|
Got a specific topic you want to notify?
|
||||||
```bash
|
```bash
|
||||||
# Assuming our {bot_token} is 123456789:abcdefg_hijklmnop
|
# Assuming our {bot_token} is 123456789:abcdefg_hijklmnop
|
||||||
|
|
Loading…
Reference in New Issue