Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

A Telegram alert plugin for Cabot by Arachnys

Project Description

Based on:

This is an alert plugin for the cabot service monitoring tool. It allows you to alert users using a Telegram chat room.


Enter the cabot virtual environment:

$ pip install cabot_alert_telegram
$ foreman stop


$ pip install git+git://
$ foreman stop

Edit conf/*.env:

TELEGRAM_CHAT_ID=id of the chat where messages will be sent

Add cabot_alert_telegram to the installed apps in

$ foreman run python syncdb
$ foreman start

Add manually an instance of the Alert Plugin (sometimes it is not added automatically):

$ ssh ubuntu@server
$ source venv/bin/activate
$ cd cabot
$ foreman run -e conf/production.env python shell # point to the correct production.env file
Python 2.7.3 (default, Dec 18 2014, 19:10:20)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from cabot_alert_telegram.models import TelegramAlert
>>> ta = TelegramAlert()
>>> ta.title = u'Telegram'
>>> (Ctrl-D to exit)

Telegram Bot

You need to create a Telegram bot which will be used to send the messages to the users. To create a new Telegram Bot check the official documentation at

You need to create a new Group Chat, add all your users to that chatroom and add also the Bot there.

To get the chat id, open and select the group chat you previously created. Check the URL, it will be something like this:

You need to not the value of p parameter (g99999999) and exchange g with a -: -99999999

This is a bit hacky, but I don’t know any other way to get the group id.

0.5 (2016-11-07)

  • Simpler alert message [garaolaza]

0.4 (2016-01-21)

0.3 (2015-07-02)

0.2 (2015-07-02)

0.1 (2015-07-02)

Release History

Release History

This version
History Node


History Node


History Node


History Node


History Node


History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
cabot_alert_telegram-0.5.tar.gz (4.6 kB) Copy SHA256 Checksum SHA256 Source Nov 7, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting