Improve docs for Telegram agent (#1510)

Andrey Yantsen %!s(int64=8) %!d(string=hace) años
padre
commit
93c6a75cec
Se han modificado 1 ficheros con 9 adiciones y 2 borrados
  1. 9 2
      app/models/agents/telegram_agent.rb

+ 9 - 2
app/models/agents/telegram_agent.rb

@@ -19,8 +19,15 @@ module Agents
19 19
       **Setup**
20 20
 
21 21
       1. Obtain an `auth_token` by [creating a new bot](https://telegram.me/botfather).
22
-      2. Send a private message to your bot by visiting https://telegram.me/YourHuginnBot
23
-      3. Obtain your private `chat_id` from the recently started conversation by visiting https://api.telegram.org/bot`<auth_token>`/getUpdates
22
+      2a. If you would like to send messages to a public channel:
23
+        1. Add your bot to the channel as an administrator
24
+        2. Set `chat_id` to the name of your channel - e.g. `@YourHugginChannel`
25
+      2b. If you would like to send messages to a group:
26
+        1. Add the bot to the group
27
+        2. Obtain your group `chat_id` from the recently started conversation by visiting https://api.telegram.org/bot`<auth_token>`/getUpdates
28
+      2c. If you would like to send messages privately to yourself:
29
+        1. Send a private message to your bot by visiting https://telegram.me/YourHuginnBot
30
+        2. Obtain your private `chat_id` from the recently started conversation by visiting https://api.telegram.org/bot`<auth_token>`/getUpdates
24 31
     MD
25 32
 
26 33
     def default_options