Updated Notify_telegram (markdown)

Chris Caron 2019-06-27 08:49:00 -04:00
parent 08a1b45117
commit f82544d573

@ -23,14 +23,15 @@ To do this you will have to open a communication (inside Telegram) to the **[Bot
The good news is this process only has to be done once. Once you get your **bot_token**, hold on to it and no longer worry about having to repeat this process again. It's through this bot that Apprise is able to send notifications onto Telegram to different users.
#### Chat ID Conundrum
Behind the scenes, Telegram notifies users by their **{chat_id}** and not their _easy-to-remember_ user name.
Unfortunately (at this time) Telegram doesn't make it easy to get this information.
Unfortunately (at this time) Telegram doesn't make it intuitive to get this **{chat_id}** without simple tricks and workarounds that can be found through Googling or just simply talking to their support team.
To make your life easier, it would be a good idea to send a private message to this new bot you just created. This allows apprise to detect _your_ **{chat_id}** automatically since it can be easily pulled from the message you sent. It also makes it so you just need to use the simple apprise URL:
However, Apprise can make this task a bit easier if the intention is to just private message yourself. If this is the case, simply send a private message to this new bot you just created (above). That's it!
By doing this, Apprise is able to automatically to detect _your_ **{chat_id}** from the message sent to the bot. Doing this also allows you to greatly simplify the Apprise URL to read:
* **tgram**://**{bot_token}**/
This part is entirely optional; but worth considering!
When using the short form of the Telegram/Apprise URL and the bot owner (probably you) is successfully detected, it's **{chat_id}** is presented in the logs after the notification is sent. Ideally you should ideally take this and update your URL to explicitly reference this in the future.
### Syntax
Valid are as follows:
@ -41,8 +42,6 @@ Valid are as follows:
* **tgram**://**{bot_token}**/**{chat_id1}**/**{chat_id2}**/**{chat_id3}**/
**Note:** When using the short form of the Apprise URL and the bot owner (probably you) is detected, it's **{chat_id}** is presented in the logs. Ideally you should ideally take this and update your URL to explicitly reference this in the future.
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**