# remove php5 modules
apt-get autoremove --purge php5-*
# add php-7.0 source list by [Ondřej Surý](https://github.com/oerdnj)
add-apt-repository ppa:ondrej/php
# Update index
apt-get update
# Install php7.0-fpm with needed extensions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * 'special-term' is a unique butterfly | |
| */ | |
| function dbx_get_special_terms() { | |
| return array( 'special-term' ); | |
| } | |
| /** |
- Go to Grafana > Alerting > Notification channels > New channel.
- Type: Telegram. It will ask you for a Bot API Token and a Chat ID.
- Open a chat with BotFather on Telegram.
- Type
/newbot - Type your bots name. e.g.
Grafana Bot - Type your bots username. e.g.
a_new_grafana_bot - You get your Bot API Token. Paste it on Grafana.
- Before making getUpdates (in the next step) you should add your bot into your telegram client and run
/start. Thus you start chatting with the bot and this room is assigned chat id. (Thanks to @KES777)
OlderNewer