Telegram Notifications Plugin (discourse-telegram-notifications)

It looks like your server is having trouble contacting Are you using a supported installation? Is your server inside a network which could be interfering with outgoing requests?

1 Like

Hi @david , sorry for late reply.
Yes the site is accessible (redirects to Bots: An introduction for developers ).

Also getting this below error.

ActionView::MissingTemplate (Missing template discourse_telegram_notifications/telegram/hook, application/hook with {:locale=>[:en_US, :en], :formats=>[:html], :variants=>[], :handlers=>[:raw, :erb, :html, :builder, :ruby]}. Searched in:
  * "/var/www/discourse/app/views"
  * "/var/www/discourse/plugins/docker_manager/app/views"
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.0/lib/action_view/path_set.rb:48:in `find'

On running openssl s_client -connect got below result.

no peer certificate available
No client certificate CA names sent
SSL handshake has read 0 bytes and written 308 bytes
Verification: OK
New, (NONE), Cipher is (NONE)
Secure Renegotiation IS NOT supported
Compression: NONE
Expansion: NONE
No ALPN negotiated
Early data was not sent
Verify return code: 0 (ok)

@codinghorror Recently openssl version was changed in latest discourse docker container due to which this issue is arising. On host machine I tried using OpenSSL 1.1.1 for telegram api and it loads the certificate.


New bug: after changing topic’s tag the first message of that topic will be send to telegram as a notification. So every time you change a topic’s tag there will be a notification in telegram.

NOTE: The bug is active on 2.4.0.beta7 (06c2e28bbb). To activate the bug topic starter must create topic with tags, after that he must reply to that thread and topic starter’s message must be last in the topic. After that if topic starter will change the tag, then plugin will send notification which will include first post’s text.

So how to receive infinite notification with first message of the topic:

  1. Topic Starter must create a topic
  2. Topic Starter must reply to this topic
  3. Topic Starter must change the topic’s tag. And now every time he change the topic’s tag everyone who subscribed to this topic will receive a notification that will include first message of that topic.

If someone will reply after topic starter’s reply and topic starter will change the topic’s tag: then notification with first message will still arrive, but only once.

Please, fix that issue as I’m using Discourse as a notification platform. :slight_smile:

Do the users also receive the ‘infinite notifications’ in the Discourse user interface?

This plugin uses the same notification system as Discourse itself, so I would be surprised if this issue is specific to the telegram notifications.

1 Like

Yes. When topic starter changes topic’s tag it shows up as a notification in Discourse. (only if topic starter is the last one who replied to this topic).

Can I disable it somehow or this is a bug? This bug/feature comes with 2.4.0.beta7 update.

By the way, after last update (87a298a59b) the infinite notifications while changing topic’s tag is gone. Now it comes only with one notification when tag is changed. But still, how to disable notification when changing tag? Notification comes like “reply notification” but it is not.

This notification was received after “fiss” as topic started changed the tag.

1 Like

Do you have the tags set to “watching” in your user preferences?

1 Like

I’ve checked. No. :slight_smile: All of my team just set “watching” in the category, but not for tags. There was no such trouble before an update by the way.

I get this error:

translation missing: vi.discourse_telegram_notifications.message.watching_first_post

So, i can’t get notification

The plugins isn’t translated into your language.

You can send a pull request with the translation here: discourse-telegram-notifications/config/locales at master · davidtaylorhq/discourse-telegram-notifications · GitHub

1 Like

Perhaps a dumb question, but what notifications should I expect to see via Telegram? The bot is up and running, I send it a message and get a Chat ID, I put that ID into my user profile, but despite having gotten a couple of email notifications since that time, I haven’t seen anything on Telegram. Should I have, or is there someplace else I need to set up those notifications?

If logs are needed to help figure this out, I’m fine with posting them, but I’ll need some guidance on where to look for them.

Proofreading always helps–turns out I’d (apparently, though I never saw the error) entered the Chat ID incorrectly. Now that it’s re-entered, notifications work as expected. Cool!


Hi. I’m trying to get this configured but I’m stuck on trying to get the Bot to send me the Chat ID. No matter what i type, I get no response.

First I created the bot following the directions.
Then I created a Group in Telegram and add the bot as a member.
Then i try to send a message, even tagging the bot and still no response.

I even try to create a channel and message the bot but still no response.
I even tried doing it through the desktop pp and through my mobile phone app, still no luck.

Im not sure what else to do.

Also, Do i need both, discourse-chat-integration and discourse-telegram-notifications installed?

I don’t see anywhere in the docs that it says to create a group, and in fact I see a recommendation to disallow the bot from being added to a group. Send a message directly to the bot, not to a group that includes the bot.

According to the OP (it’s even in a shaded box at the top), they do different things:

1 Like

thanks for the input, ill try again.

Can I use Chatroom Integration Plugin & Telegram notification plugins at the same? I have integrated chatroom integration plugin successfully and its working fine, but Telegram notification plugin is not notifying users. The bot just show me this!

testbot, [28.12.19 15:58]
Hi Administrator, I'll message you when you have new notifications on Engineer's Asylum. 
Replying to a notification will post a reply on Engineer's Asylum.
To disable, visit your user preferences.

From the OP:

I haven’t done it myself, but that appears to answer the question.

1 Like

I found where i went wrong, i was putting the access token in the chat integration plugin area, i found the one in the plugins settings area for telegram, messaged the bot and I got a response!

Blockquote Im still not getting the bot to respond and provide me the chat id via telegram. I tried to send a message to the bot itself. i tried to create a channel via telegram and tag the bot with a message. still i got nothing

Have you found a fix for this? I got this issue too.

I have just opened this PR to the plugin:

It adds support for that string, and also for the Discourse Follow Plugin
I hope staff merges it soon

Looks great, I just merged it - thanks @barreeeiroo :smiley: