forked from GithubBackups/healthchecks
Document settelegramwebhook
in README, and 2017->2018
This commit is contained in:
parent
a869906fde
commit
56aa1b2b1f
18
README.md
18
README.md
@ -249,14 +249,14 @@ description, user picture, and add a "/start" command.
|
||||
* After creating the bot you will have the bot's name and token. Add them
|
||||
to your `hc/local_settings.py` file as `TELEGRAM_BOT_NAME` and
|
||||
`TELEGRAM_TOKEN` fields.
|
||||
* Now the tricky part: when a Telegram user talks to your bot,
|
||||
Telegram will use a webhook to forward received messages to your healthchecks
|
||||
instance. For this to work, your healthchecks instance needs to be publicly
|
||||
accessible over HTTPS. Using the
|
||||
[setWebhook](https://core.telegram.org/bots/api#setwebhook) API call
|
||||
set the bot's webhook to `https://yourdomain.com/integrations/telegram/bot/`.
|
||||
|
||||
|
||||
|
||||
* Run `settelegramwebhook` management command. This command tells Telegram
|
||||
where to forward channel messages by invoking Telegram's
|
||||
[setWebhook](https://core.telegram.org/bots/api#setwebhook) API call:
|
||||
|
||||
```
|
||||
$ ./manage.py settelegramwebhook
|
||||
Done, Telegram's webhook set to: https://my-monitoring-project.com/integrations/telegram/bot/
|
||||
```
|
||||
|
||||
For this to work, your `SITE_ROOT` needs to be correct and use "https://"
|
||||
scheme.
|
||||
|
@ -161,7 +161,7 @@
|
||||
<footer class="footer">
|
||||
<div class="container">
|
||||
<ul>
|
||||
<li class="hidden-xs">© 2015-2017 Monkey See Monkey Do SIA</li>
|
||||
<li class="hidden-xs">© 2015-2018 Monkey See Monkey Do SIA</li>
|
||||
<li><a href="{% url 'hc-terms' %}">Terms</a></li>
|
||||
<li><a href="{% url 'hc-privacy' %}">Privacy</a></li>
|
||||
{% if show_pricing %}
|
||||
|
@ -191,7 +191,7 @@
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" style="max-width: 500px;" class="responsive-table">
|
||||
<tr>
|
||||
<td align="center" style="font-size: 12px; line-height: 18px; font-family: Helvetica, Arial, sans-serif; color:#666666;">
|
||||
© 2017 {% escaped_site_name %}. All rights reserved.
|
||||
© 2018 {% escaped_site_name %}. All rights reserved.
|
||||
{% block unsub %}{% endblock %}
|
||||
</td>
|
||||
</tr>
|
||||
|
Loading…
x
Reference in New Issue
Block a user