使用 discourse-chat-integration 插件设置 Telegram 集成

Yes I’m also experiencing this too. It will react to join/leave/pin events and I did make sure "Group Privacy is enabled.

Any updates on this? Much appreciated. @david

1 个赞

Hello, We’re experiencing the same problem as well. The group privacy setting is enabled for our bot. However, it keeps sending:

New rule: /[watch|follow|mute] [category] [tag:name]
(you must specify a rule type and at least one category or tag)
- watch – notify this channel for new topics and new replies
- follow – notify this channel for new topics
- mute – block notifications to this channel

Remove rule: /remove [rule number]
([rule number] can be found by running /status)

List rules: /status

Help: /help

Every time someone join or leave, Is there any solution for this?
Thanks.

1 个赞

Currently, the solution is to create a channel and set the bot to broadcast to that channel. Then link that channel with the group chat.

Although, I’d prefer a cleaner solution.

2 个赞

I’m having the same issue regarding the bot reacting to pin/join/leave events and posting the help message.

It also reacts to users (any user) tagging it or replying to its posts by re-posting the Chat ID.

There is also the fact that it tags Telegram users with a ‘@’, but using their Discourse username. These often don’t match. In my opinion it should mention the user name, but without using the @ symbol.

Given that I broadcast different filters to multiple telegram chats, the workaround of using a channel is not doable for me.

Is there someone working on this plugin that could take care of these issues? @david – sorry to annoy you, but maybe you can answer this question.

I am willing to spend some time and attempt to sift through the code, but I’m not very familiar with Ruby on Rails and that would take time to adjust.

2 个赞

getting an error 422 when testing it on groups or chanels.

the bot works perfectly on private chat with the bot itself. so the API is fine.

I noticed telegram gives you 10 digit chat ID for personal chats and 13 digits chat ID for groups or channels. this is the only difference i see.

anyone found a way to solve this ?

We’ve made the necessary changes and tested it for a number of days in multiple Telegram chats.

We took the liberty of creating a pull request:

3 个赞

感谢您的插件,听起来很棒。
我已经为 Telegram 安装了该插件,并且它能正常工作,您可以接收有人在某个类别中发布或在群组中发布消息的通知。

但我希望接收系统通知(警报),例如系统在备份失败时发送的通知,或者在建议您升级到新版本时发送的通知。
如果能将这些通知发送到 Telegram 而不是电子邮件,那就太好了。
我该如何实现这一点?
谢谢。

我认为您需要的是这个插件:

1 个赞

但是,根据信息,另一个插件似乎是面向用户的,可以让用户通过 Telegram 与 Discourse 帖子互动,接收帖子的回复,点赞等等。

我只想在 Telegram 上接收管理员和版主的 Discourse 通知,以及出现问题时的通知。
这对我们来说是最重要的。也许将来我们会实现其他功能,但我更愿意先用管理员和版主的留言进行测试。

在此插件中,可以选择向 Telegram 发送群组通知。
我曾认为这就是我们所需要的。

但是,当我在频道规则中选择群组通知时,我只看到我们创建的一些用户组。
列表中没有管理员、版主、工作人员、置信度一级等系统组。

@david 我正在尝试使用您的插件将发送给管理员和模组群组的消息重定向到相应的 Telegram 聊天群组。
我已经创建了机器人并将其包含在聊天群组中,它工作正常,机器人可以发送测试消息。
问题是,当我创建规则并尝试选择消息群组作为来源时,在群组列表中,它只显示我们创建的群组,而没有管理员、模组、员工或置信度级别等系统群组。
我该如何解决这个问题?
提前致谢。

@david 感谢您的插件。它效果非常好!

我不是开发人员,但能否在通知中插入帖子的网址。我想仅将此插件用作新主题的公告,但如果链接出现在(Telegram)通知中,那将是极好的。

此致,

您可以通过在管理员面板的文本自定义部分搜索“telegram”来定制消息模板

2 个赞

您好 David Taylor!我遇到了“聊天集成电报已启用”的问题。当我启用和禁用机器人时,一切正常。但是当我插入机器人并勾选复选框时,它会关闭。

https://drive.google.com/file/d/1Jv6p-bADSqeFfUyDHse2iEwbCVzzYr3B/view?usp=sharing - 这是我录制的视频。我该怎么办?谢谢。

如果 Discourse 无法设置与 Telegram 的集成,Telegram 方法将被自动禁用。发生这种情况时,日志中应会显示错误消息。请尝试访问论坛上的 /logs,看看是否有任何与 Telegram 相关的红色错误消息?

2 个赞

David Taylor 当然,您可以在此屏幕截图中看到最新的日志。我没有收到错误=(

但我不太确定错误日志。可以吗?


附注:David Taylor 如果我使用“”,它就可以工作,但当我尝试发送测试消息时,我会收到 505 错误。


也许控制台中的这些错误会有帮助。

我也收到了 500 错误,但在我的情况下,HTTPS 一切正常。

我已经集成了 Telegram,并且希望从 Discourse 为计划帖子发送通知到 Telegram。我不确定这是个 bug 还是我个人的问题,它就是不工作。有人知道如何解决吗?非常感谢。

谢谢

我已经完成了“添加频道”的第 3 步,一切都正常工作。

但是,当我转到插件 > 聊天集成并单击时,没有任何反应:

浏览器中的 URL 更改为 ../admin/plugins/chat-integration/telegram,但 UI 中没有任何变化。

这会不会是我正在使用 discourse 免费试用版的问题?