Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add clarification notes on configuration parameter usage #54

Open
jjzazuet opened this issue Dec 17, 2017 · 0 comments
Open

Add clarification notes on configuration parameter usage #54

jjzazuet opened this issue Dec 17, 2017 · 0 comments

Comments

@jjzazuet
Copy link

jjzazuet commented Dec 17, 2017

In relation to #47, I just wanted to contribute a few bits of documentation which might help users figure out whay are they not getting Telegram notifications. The way to determine a chat group id comes from this StackOverflow answer.

Hope this helps. Thanks.

PLUGIN_TOKEN and PLUGIN_TO parameter configuration.

  • PLUGIN_TOKEN is the token issued by @BotFather when configuring a new bot, as described in Telegram's Bot API.

  • PLUGIN_TO consist of a numerical id, which specifies the Telegram chat group where the Telegram plugin will send build notifications. To obtain the chat group id:

  • Call the telegram API using your bot's token:

    https://api.telegram.org/bot<THE_BOT_TOKEN>/getUpdates

And extract the id value from the chat object in the JSON response.

{
  "ok": true,
  "result": [{
    "update_id": 549000058,
    "message": {
      "message_id": 3,
      "from": {
        "id": 000000000,
        "is_bot": false,
        "first_name": "AHumansFirstName",
        "last_name": "AHumansLastName",
        "username": "humanUsername",
        "language_code": "en"
      },
      "chat": {
        "id": 123456789,
        "first_name": "AHumansFirstName",
        "last_name": "AHumansLastName",
        "username": "humanUsername",
        "type": "private"
      },
      "date": 1513466390,
      "text": "LOLZ"
    }
  }]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant