{"id":21662610,"url":"https://github.com/codesyntax/cabot_alert_telegram","last_synced_at":"2025-04-11T23:43:42.148Z","repository":{"id":34480142,"uuid":"38418794","full_name":"codesyntax/cabot_alert_telegram","owner":"codesyntax","description":"Receive alerts from your cabot instance using Telegram","archived":false,"fork":false,"pushed_at":"2018-06-21T13:22:20.000Z","size":23,"stargazers_count":3,"open_issues_count":0,"forks_count":8,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-03-25T19:40:57.214Z","etag":null,"topics":["alert","cabot","monitoring","telegram"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codesyntax.png","metadata":{"files":{"readme":"README.rst","changelog":"HISTORY.txt","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-07-02T07:48:09.000Z","updated_at":"2023-07-30T19:41:11.000Z","dependencies_parsed_at":"2022-08-29T20:02:12.319Z","dependency_job_id":null,"html_url":"https://github.com/codesyntax/cabot_alert_telegram","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codesyntax%2Fcabot_alert_telegram","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codesyntax%2Fcabot_alert_telegram/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codesyntax%2Fcabot_alert_telegram/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codesyntax%2Fcabot_alert_telegram/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codesyntax","download_url":"https://codeload.github.com/codesyntax/cabot_alert_telegram/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248497899,"owners_count":21113982,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["alert","cabot","monitoring","telegram"],"created_at":"2024-11-25T10:17:22.809Z","updated_at":"2025-04-11T23:43:42.121Z","avatar_url":"https://github.com/codesyntax.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"=====================\nCabot Telegram Plugin\n=====================\n\nBased on: https://github.com/lblasc/cabot-alert-slack\n\nThis is an alert plugin for the cabot service monitoring tool. It allows you to alert users using a `Telegram`_ chat room.\n\nInstallation\n==============\n\nEnter the cabot virtual environment::\n\n    $ pip install cabot_alert_telegram\n    $ foreman stop\n\n\nor::\n\n\n    $ pip install git+git://github.com/codesyntax/cabot_alert_telegram.git\n    $ foreman stop\n\n\nEdit `conf/*.env`::\n\n\n    CABOT_PLUGINS_ENABLED=cabot_alert_telegram=0.6\n    ...\n    TELEGRAM_BOT_TOKEN=bot_token\n    TELEGRAM_CHAT_ID=id of the chat where messages will be sent\n\n\nAdd cabot_alert_telegram to the installed apps in settings.py::\n\n    $ foreman run python manage.py syncdb\n    $ foreman start\n\nAdd manually an instance of the Alert Plugin (sometimes it is not added automatically)::\n\n    $ ssh ubuntu@server\n    $ source venv/bin/activate\n    $ cd cabot\n    $ foreman run -e conf/production.env python manage.py shell # point to the correct production.env file\n    Python 2.7.3 (default, Dec 18 2014, 19:10:20)\n    [GCC 4.6.3] on linux2\n    Type \"help\", \"copyright\", \"credits\" or \"license\" for more information.\n    (InteractiveConsole)\n    \u003e\u003e\u003e from cabot_alert_telegram.models import TelegramAlert\n    \u003e\u003e\u003e ta = TelegramAlert()\n    \u003e\u003e\u003e ta.title = u'Telegram'\n    \u003e\u003e\u003e ta.save()\n    \u003e\u003e\u003e (Ctrl-D to exit)\n\n\nTelegram Bot\n============\n\nYou 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 https://core.telegram.org/bots\n\nYou need to create a new Group Chat, add all your users to that chatroom and add also the Bot there.\n\nTo get the chat id, open https://telegram.me and select the group chat you previously created. Check the URL, it will be something like this::\n\n    https://web.telegram.org/#/im?p=g99999999\n\nYou need to not the value of p parameter (g99999999) and exchange **g** with a **-**: **-99999999**\n\nThis is a bit hacky, but I don't know any other way to get the group id.\n\n\n.. _Telegram: https://telegram.org\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodesyntax%2Fcabot_alert_telegram","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodesyntax%2Fcabot_alert_telegram","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodesyntax%2Fcabot_alert_telegram/lists"}