From a877ff9ec8ff877265fa6261acc77d2dacbe21bd Mon Sep 17 00:00:00 2001 From: Mike Beattie Date: Mon, 11 Jan 2021 12:27:38 +1300 Subject: [PATCH] Small elaboration of telegram setup --- notify.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/notify.md b/notify.md index c06ffcb..62d5338 100644 --- a/notify.md +++ b/notify.md @@ -412,7 +412,7 @@ All of the `SMTP_*` settings will be saved in ~/.acme.sh/account.conf and will b To have notifications delivered via Telegram, you first need to [create a new Telegram bot](https://core.telegram.org/bots#creating-a-new-bot), by talking to [@BotFather](https://t.me/botfather) within your Telegram client. Save the bot token that is returned after creation. -Next, you need the `chat_id` of your Telegram account (or a group). The simplest way to do this is to start a conversation with your new bot, and send a simple test message to it. Then, using `curl`, fetch the `getUpdates` API endpoint, and look for the chat id in the json object for the message you sent. For example: +Next, you need the `chat_id` of your Telegram account (or a group). The simplest way to do this is to start a conversation with your new bot, and send a simple test message to it. Then, using `curl`, fetch the [`getUpdates`](https://core.telegram.org/bots/api#getupdates) API endpoint, and look for the chat id in the json object for the message you sent. For example: ```sh $ bot_token="...." # enter your new bot's API token here. @@ -430,6 +430,8 @@ $ curl -s "https://api.telegram.org/bot${bot_token}/getUpdates" | python -mjson. "username": "joebloggs" }, ...... + "text": "text of the test message you sent", + ...... $ ```