Plugin for Sentry which allows sending notification via Telegram messenger.

Overview

Sentry Telegram Build Status Coverage Status pypi

Plugin for Sentry which allows sending notification via Telegram messenger.

Presented plugin tested with Sentry from 8.9 to 9.1.1.

DISCLAIMER: Sentry API is under development and is not frozen.

How will it look like

How will it look like

Installation

  1. Install this package
pip install sentry-telegram
  1. Restart your Sentry instance.

  2. Go to your Sentry web interface. Open Settings page of one of your projects.

  3. On Integrations (or Legacy Integrations) page, find Telegram Notifications plugin and enable it.

  4. Configure plugin on Configure plugin page.

    See Telegram's documentation to know how to create BotAPI Token.

  5. Done!

Comments
  • Add basic templating ability in plugin settings

    Add basic templating ability in plugin settings

    I have added some basic templating ability, and threw it onto plugin settings page. It also refers to #6. Dropped previous pull request because of failed tests. This pull request fixes it.

    opened by metheoryt 3
  • More detailed documentation please

    More detailed documentation please

    I'm interested in getting notifications for every Sentry error in my project. This appears to be my only hope to notify Sentry errors in Telegram.

    However I'd like more detailed documentation on how to set this up. I have no idea where to install this package (somewhere on Sentry or locally, and if locally how would it work).

    opened by nirmalhk7 2
  • Can't see plugin in web interface

    Can't see plugin in web interface

    Add to requirements.txt

    docker-compose up -d --build
    
    Building sentry_web
    Step 1/1 : FROM sentry:9.1-onbuild
    # Executing 4 build triggers
     ---> Running in 538350efb466
    DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
    Collecting sentry-telegram
      Downloading https://files.pythonhosted.org/packages/b1/28/8003f0cfb7c2f107b9eb66fbc1c98d86643005573fcdfd37a3b3037b4d95/sentry_telegram-0.4.0-py2-none-any.whl
    Installing collected packages: sentry-telegram
    Successfully installed sentry-telegram-0.4.0
    
    docker-compose exec sentry_hard_worker pip install sentry-telegram
    
    DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
    Requirement already satisfied: sentry-telegram in /usr/local/lib/python2.7/site-packages (0.4.0)
    
    docker-compose exec sentry_web pip install sentry-telegram
    
    DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
    Requirement already satisfied: sentry-telegram in /usr/local/lib/python2.7/site-packages (0.4.0)
    

    But on interface can't see plugin image

    opened by 4n70w4 1
  • Can't see plugin

    Can't see plugin

    Hi!

    I installed the plugin with pip install sentry-telegram and I can't see it neither in integrations nor in legacy integrations.

    Do I have to do anything else?

    Best, Yatekii

    opened by Yatekii 1
  • Error on first try

    Error on first try

    I've got the following error Test Results: "There was an internal error with the Plugin" after first test ( bot token and id is correct )

    how can i find its log ?

    opened by shynline 1
  • Implement testing of settings

    Implement testing of settings

    It would be nice if plugin had some "test settings" action that would try to send test notification (to check, that bot token and receiver ids are correct).

    enhancement 
    opened by rutsky 1
  • INSTALLED_APPS modification doesn't work as specified in README

    INSTALLED_APPS modification doesn't work as specified in README

    INSTALLED_APPS in tuple by default in Sentry, so using INSTALLED_APPS = INSTALLED_APPS + ['sentry_telegram'] (e.g. in sentry.conf.py in docker-sentry setup) as specified in README leads to the following error:

    TypeError: can only concatenate tuple (not "list") to tuple
    
    opened by rutsky 1
  • Make installation easier

    Make installation easier

    There is an option to install a plugin automatically: https://github.com/getsentry/sentry-plugins/blob/master/setup.py#L105

    # entry_points={
    #    'sentry.plugins': [
    #         'phabricator = sentry_phabricator.plugins:PhabricatorPlugin'
    #     ],
    # },
    
    # entry_points={
    #    'sentry.apps': [
    #         'phabricator = sentry_phabricator'
    #     ],
    # },
    
    opened by butorov 0
  • Doesnt work on 22.7.0.dev0

    Doesnt work on 22.7.0.dev0

    Versión: 0.4.0 Sentry Version: 22.7.0.dev0

    I install & setup Legacy Integration with specific token & chatid but when i try to do a test it doesnt send message.

    opened by 50l3r 5
  • On Sentry 21.8.0.dev0 does not processes the receivers field. [With solution]

    On Sentry 21.8.0.dev0 does not processes the receivers field. [With solution]

    Solution:

    In plugin.py

    def get_receivers(self, project):
            receivers = self.get_option('receivers', project)
            if not receivers:
                return []
    
            #  return filter(bool, receivers.strip().splitlines())  ---------- this line replace with
            return list(filter(bool, receivers.strip().splitlines())) # << this line
    
    opened by DAVIDhaker 0
  • [onpremise] This plugin needs to install in which one of them?

    [onpremise] This plugin needs to install in which one of them?

    When using onpremise, there are a lot if services, This plugin needs to install in which one of them?

     sentry_onpremise_nginx_1
     sentry_onpremise_relay_1
     sentry_onpremise_ingest-consumer_1
     sentry_onpremise_subscription-consumer-events_1
     sentry_onpremise_post-process-forwarder_1
     sentry_onpremise_subscription-consumer-transactions_1
     sentry_onpremise_sentry-cleanup_1
     sentry_onpremise_cron_1
     sentry_onpremise_web_1
     sentry_onpremise_worker_1
     sentry_onpremise_snuba-cleanup_1
     sentry_onpremise_symbolicator-cleanup_1
     sentry_onpremise_snuba-consumer_1
     sentry_onpremise_snuba-transactions-consumer_1
     sentry_onpremise_snuba-api_1
     sentry_onpremise_snuba-replacer_1
     sentry_onpremise_snuba-outcomes-consumer_1
     sentry_onpremise_snuba-subscription-consumer-transactions_1
     sentry_onpremise_snuba-subscription-consumer-events_1
     sentry_onpremise_snuba-sessions-consumer_1
     sentry_onpremise_symbolicator_1
     sentry_onpremise_postgres_1
     sentry_onpremise_memcached_1
     sentry_onpremise_kafka_1
     sentry_onpremise_clickhouse_1
     sentry_onpremise_redis_1
    

    Related issue

    opened by omidraha 2
  • Settings for different environments

    Settings for different environments

    It would be very useful to be able to make different settings for different environments. For example, disable notifications for a locale or send them to another chat. image

    opened by 4n70w4 0
Owner
Shmele
LinkedIn: https://www.linkedin.com/in/butorov/ GitLab: https://gitlab.com/v.butorov
Shmele
python based bot Sends notification to your telegram whenever a new video is released on a youtube channel!

YTnotifier python based bot Sends notification to your telegram whenever a new video is released on a youtube channel! REQUIREMENTS telethon python-de

Mohamed Rizad 6 Jul 23, 2022
fbchat - Facebook Messenger for Python

A powerful and efficient library to interact with Facebook's Messenger, using just your email and password.

null 1.1k Dec 23, 2022
This repo contains a simple library for work with Eitaa messenger's api

Eitaa PyKit This repo contains a simple library for work with Eitaa messenger's api PyPI Page : https://pypi.org/project/Eitaa-PyKit Install via pip p

Bistcuite 20 Sep 16, 2022
wrapper for facebook messenger

pyfacebook pyfacebook library for python. Requirements common Help Got a question? File a GitHub issue. Contributing Bug Reports & Feature Requests Pl

Luis Mayta 3 Nov 12, 2021
Secret messaging app which you can use to communicate with your friends by encrypting / decrypting secret messages or sending secret message through mail.

Secret-Whisper A Secret messaging app which you can use to communicate with your friends by encrypting / decrypting secret messages ?? or sending secr

null 3 Jan 1, 2022
An Amazon Price Tracker app helps you to buy which product you want within sale price by sending an E-Mail.

Amazon Price Tracker An Amazon Price Tracker app helps you to buy which product you want within sale price by sending an E-Mail. Installing Download t

Aytaç Kaşoğlu 2 Feb 10, 2022
AWS Lambda - Parsing Cloudwatch Data and sending the response via email.

AWS Lambda - Parsing Cloudwatch Data and sending the response via email. Author: Evan Erickson Language: Python Backend: AWS / Serverless / AWS Lambda

Evan Scott Erickson 1 Nov 14, 2021
WBMS automates sending of message to multiple numbers via WhatsApp Web

WhatsApp Bulk Message Sender - WBMS WBMS automates sending of message to multiple numbers via WhatsApp Web. Report Bug · Request Feature Love the proj

Akshay Parakh 3 Jun 26, 2022
This is a telegram bot hosted by a Raspberry Pi equipped with a temperature and humidity sensor. The bot is capable of sending plots and readings.

raspy-temperature-bot This is a telegram bot hosted by a Raspberry Pi equipped with a temperature and humidity sensor. The bot is capable of sending p

null 31 May 22, 2022
Pogodasbot - Telegram bot sending channel weather info

Pogodasbot - Telegram bot sending channel weather info

Qayrat Sultan 1 Dec 15, 2022
Force-Subscribe-Bot - A Telegram Bot to force users to join a specific channel before sending messages in a group

Introduction A Telegram Bot to force users to join a specific channel before sen

LG Bot Updates 0 Jan 16, 2022
ShotsGram - For sending captures from your monitor to a telegram chat (robot)

ShotsGram pt-BR Envios de capturas do seu monitor para um chat do telegram. Essa

Carlos Alberto 1 Apr 24, 2022
Melissa Songs is a telegram bot to easily find songs sending music snippets and search tracks 💃🏽🎵

Find songs on Telegram, like on Shazam... ?? Open on telegram · Report Bug · Request Feature ⬇️ Installation To get a local copy installed and working

Joaquim Roque 21 Nov 10, 2022
Benachrichtigungs-Bot für das niedersächische Impfportal / Notification bot for the lower saxony vaccination portal

Ein kleines Wochenend-Projekt von mir. Der Bot überwacht die REST-API des niedersächsischen Impfportals auf freie Impfslots und sendet eine Benachrichtigung mit deinem bevorzugtem Service. Ab da gilt leider: der Schnellste gewinnt. Bitte missbraucht den Bot nicht und verwendet moderate Intervalle.

sibalzer 37 May 11, 2022
Monitor robot of Apple Store's products, using DingTalk notification.

概述 本项目应用主要用来监测Apple Store线下直营店货源情况,主要使用Python实现。 首先感谢iPhone-Pickup-Monitor项目带来的灵感,同时有些实现也直接使用了该项目的一些代码。 本项目在iPhone-Pickup-Monitor原有功能的基础上去掉了声音通知,但添加了多

Lennon Chin 159 Dec 9, 2022
Script to get a notification when a product, on Amazon Warehouse, is available within a target price

Amazon_Warehouse_Scraping This script aims to scrape Amazon Warehouse and send an email back if there are products whose price matches with the target

null 2 Oct 25, 2021
Notification Reminder Application For Python

Notification-Reminder-Application No matter how well you set up your to-do list and calendar, you aren’t going to get things done unless you have a re

null 1 Nov 26, 2021
Starlink Order Status Notification

Starlink Order Status Notification This script logs into Starlink order portal, pulls your estimated delivery date and emails it to a designated email

Aaron R. 1 Jul 8, 2022