From 91c88427491b746d96c46f86b3c04b1b3a557c6f Mon Sep 17 00:00:00 2001 From: Rubin Date: Fri, 19 Aug 2016 13:17:10 -0700 Subject: [PATCH] There is an easier way to obtain your chat_id --- doc/telegram.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/doc/telegram.md b/doc/telegram.md index 0981973..5794a1a 100644 --- a/doc/telegram.md +++ b/doc/telegram.md @@ -7,9 +7,11 @@ module by following the above steps. * First of all, you need to have a telegram account. * Talk to [BotFather][] to create a new bot and get an api key. * Create a chat with the bot and say something in the chat. -* Use browser to connect to https://api.telegram.org/bot[apikey]/getUpdates (replace the apikey with -the key generated by BotFather). You should see messages sent from you, and there will be several -id fields in the reply. We'll use the one in the chat session. +* Obtain your chat_id (a numeric id # used internally) one of two ways + * Use browser to connect to https://api.telegram.org/bot[apikey]/getUpdates (replace the apikey with + the key generated by BotFather). You should see messages sent from you, and there will be several + id fields in the reply. We'll use the one in the chat session. + * Chat with @get_id, and send it the command /my_id. It will respond with your chat_id * set service to 'telegram': /msg *push set service telegram * set secret to the **api key**: /msg *push set secret your-api-key * set target to chat ID: /msg *push set target your-chat-id