Telegram Notifications Plugin (discourse-telegram-notifications)

It looks like your server is having trouble contacting https://api.telegram.org. 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 api.telegram.org:443 got below result.

CONNECTED(00000003)
write:errno=104
---
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.

@david

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.

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.
52

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

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.