Skip to content

Commit

Permalink
Updated instructions to get chat_id
Browse files Browse the repository at this point in the history
Due to the new [Telegram API privacy
mode](https://core.telegram.org/bots#privacy-mode), the `getUpdates`
call does not show all messages sent in the group. Instead, the bot only
sees a limited set of messages. Sending any `/cmd` message and also
mentioning the bot will make the message appear in `getUpdates`.
  • Loading branch information
lagartoflojo committed Nov 20, 2018
1 parent 0d5e803 commit de158e7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@ This gem also expects a JSON configuration file with the following contents:
[@BotFather](https://telegram.me/botfather).
- `chat_id`: the chat to which the error message is to be sent.
The bot must be a member of this channel or group.
You can get this chat_id by adding the bot to the corresponding group
and then accessing `https://api.telegram.org/bot<TOKEN>/getUpdates`.
You can get the `chat_id` by adding the bot to the corresponding group,
sending a message like `/fakecmd @your-bot-username`, and then accessing
`https://api.telegram.org/bot<TOKEN>/getUpdates`.
- `error_file_location` (optional): in case there is a failure sending the
message to Telegram (ie. connectivity issues), the exception mesage will
be written to a file in this location. You can then monitor this
Expand Down

0 comments on commit de158e7

Please sign in to comment.