mautrix / telegram

A Matrix-Telegram hybrid puppeting/relaybot bridge
https://matrix.to/#/#telegram:maunium.net
GNU Affero General Public License v3.0
1.34k stars 177 forks source link

Messages of the RSS bot don't get bridged to telegram #583

Open maeries opened 3 years ago

maeries commented 3 years ago

When the "build in" RSS bot in the matrix room posts something that message will not appear in the relayed telegram group

How to reproduce

  1. Setup mautrix telegram with bridge_notices.default:false (which is the default configuration)
  2. Relay a room to a telegram group
  3. setup the RSS bot in the Matrix room
  4. change the configuration to bridge_notices.default:true (!tg config default shows that the change was successful)
  5. Subscribe to an RSS feed using the bot and wait until something new is posted in that feed

What I expect

The message from the RSS bot that notifies about a new post in the RSS feed should show up in Telegram

What actually happens

The message from the RSS bot appears in Matrix, but not in Telegram

Additional Info

System info

maeries commented 3 years ago

To try to work around the issue I created a new Matrix room and bridged that to the same telegram group as before, but the bot still doesn't bridge messages of the RSS bot

penn5 commented 3 years ago

On telegram a bot can't see messages from a bot.

maeries commented 3 years ago

Sry that I didn't make it more clear, but the RSS bot I'm speaking of is a Matrix bot, not a telegram bot. So that can't be the issue here.

JuniorJPDJ commented 3 years ago

duplicate of https://github.com/tulir/mautrix-telegram/issues/573

maeries commented 3 years ago

duplicate of #573

I don't think so, as in your screenshot I can see the message from the RSS bot appear in Telegram

JuniorJPDJ commented 3 years ago

Can you show screenshots of your behaviour?

maeries commented 3 years ago

screenshot On the left, in Element, you can see a message from the RSS bot which is missing on the right side in Telegram

JuniorJPDJ commented 3 years ago

Can you post event json?

maeries commented 3 years ago
{
  "content": {
    "body": "Podcast: TEST ( https://podcast.xxx.com/2021/02/15/test/ )",
    "format": "org.matrix.custom.html",
    "formatted_body": "<strong>Podcast</strong>:<br><a href=\"https://podcast.xxx.com/2021/02/15/test/\"><strong>TEST</strong></a>",
    "msgtype": "m.notice"
  },
  "origin_server_ts": 1613415000515,
  "sender": "@_neb_rssbot_=40marius=3amatrix.xxx.com:matrix.org",
  "type": "m.room.message",
  "unsigned": {
    "age": 102355526
  },
  "event_id": "$LRiJ1Vh7F6MqyrG4M6LGpvbi0bzUDr7-nlIaJ0veGmI",
  "room_id": "!ucWcbpAjWIngMuXtbb:matrix.xxx.com"
}

I hope that's what the event json is

JuniorJPDJ commented 2 years ago

It's probably not bridged as it's msgtype: m.notice. Could you check if you have enabled bridge_notices in your config?

maeries commented 2 years ago

I've set

    bridge_notices:
        # Whether or not Matrix bot messages (type m.notice) should be bridged.
        default: true
        # List of user IDs for whom the previous flag is flipped.
        # e.g. if bridge_notices.default is false, notices from other users will not be bridged, but
        #      notices from users listed here will be bridged.
        exceptions:

Though, I didn't set it that way right from the beginning so maybe the problem is that the bridge initially set bridge_notices:default:false and now fails to change it afterwards. On the other hand !tg config defaults also says bridge_notices: default: true

JuniorJPDJ commented 2 years ago

Check what is it set on group, as afaik it can be overwritten in per-group basics.

maeries commented 2 years ago

i issued !tg config set bridge_notices.default true some time ago in the room already and !tg config view shows

1 bridge_notices:
2     default: true
3

So I guess the per-room config is also set to true?

JuniorJPDJ commented 2 years ago

That's true.