Giter VIP home page Giter VIP logo

discourse-telegram-notifications's Introduction

discourse-telegram-notifications

A plugin for Discourse which allows users to receive their notifications by telegram message

Getting setup

  1. Install the plugin using the instructions here: How to install a plugin
  2. Create a telegram by talking to the BotFather (instructions here
  3. Paste the "token" into the site setting "telegram access token"
  4. Tick "telegram notifications enabled"

I strongly recommend you use the /setjoingroups command to disable the bot being used for group chats. It is not designed for it, and risks leaking information that users are not supposed to be able to access (e.g. you don't want private messages being sent to a group chat).

You can set the name/picture/description of your bot using the instructions here

For users to receive notifications

  1. Send a message to the bot, you'll recieve a message back that looks like
To get notifications for Discourse, enter the 'Chat ID' 1234567 in your user preferences
  1. Visit your user preferences, and paste the number in the Telegram Notifications box
  2. You should now receive notifications by telegram message!

discourse-telegram-notifications's People

Contributors

barreeeiroo avatar davidtaylorhq avatar dax74 avatar earcos avatar erlendms avatar joshua1337 avatar merefield avatar scavin avatar victor-siu avatar wymiotkloaki avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

discourse-telegram-notifications's Issues

Only receive email notifications

Hello,

For few month now I can't get the plugin working. All is configured, the bot confirms it, but I only receive new notifications by email.

Did anybody got this bug?

Thanks for your help!

Unwanted notifications

Hi!

This is working well. But there are different problems. Whenever a new user joins the group, this bot gives the chat id, which is not wanted. Then if someone replies to the discourse notification it will post the start operation. How can we disable this?

Keep formatting of the messages

It would be cool if message formatting applied on Telegram side (like bold, italic etc) when sending a reply was applied to the messages posted on Discourse, as well.

Same goes for the notifications sent by the bot to Telegram - currently they're formatted as monospace, but it would be very useful if they retained the original formatting from the post they are related to

Can't get chat id

image
using command /start
and nothing :(
post this report here - https://meta.discourse.org/t/telegram-notifications-plugin-discourse-telegram-notifications/60483/165

more info
my logs:

Message

Failed to send Telegram message. Message data= "{\"url\":\"https://site.net/telegram/hook/2bae74eecc11436c25d7324133c55d72\"}" response="{\"ok\":false,\"error_code\":404,\"description\":\"Not Found\"}"

Backtrace

/var/www/discourse/plugins/discourse-telegram-notifications/services/discourse_telegram_notifications/telegram-notifier.rb:46:in `doRequest'
/var/www/discourse/plugins/discourse-telegram-notifications/services/discourse_telegram_notifications/telegram-notifier.rb:24:in `setupWebhook'
/var/www/discourse/plugins/discourse-telegram-notifications/plugin.rb:251:in `execute'
/var/www/discourse/app/jobs/base.rb:232:in `block (2 levels) in perform'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/rails_multisite-3.0.0/lib/rails_multisite/connection_management.rb:80:in `with_connection'
/var/www/discourse/app/jobs/base.rb:221:in `block in perform'
/var/www/discourse/app/jobs/base.rb:217:in `each'
/var/www/discourse/app/jobs/base.rb:217:in `perform'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/sidekiq-6.2.1/lib/sidekiq/processor.rb:196:in `execute_job'
/var/www/discourse/vendor/bundle/ruby/2.7.0/gems/sidekiq-6.2.1/lib/sidekiq/processor.rb:164:in `block (2 levels) in process'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.