Browse Source

Document `settelegramwebhook` in README, and 2017->2018

pull/149/head
Pēteris Caune 7 years ago
parent
commit
56aa1b2b1f
3 changed files with 11 additions and 11 deletions
  1. +9
    -9
      README.md
  2. +1
    -1
      templates/base.html
  3. +1
    -1
      templates/emails/base.html

+ 9
- 9
README.md View File

@ -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.

+ 1
- 1
templates/base.html View File

@ -161,7 +161,7 @@
<footer class="footer">
<div class="container">
<ul>
<li class="hidden-xs">&copy; 2015-2017 Monkey See Monkey Do SIA</li>
<li class="hidden-xs">&copy; 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 %}


+ 1
- 1
templates/emails/base.html View File

@ -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…
Cancel
Save