Direct chats with bots do not get bridged correctly.
Opened this issue · 3 comments
bmccafferty commented
In a private g/chat room with only yourself and a bot (say a webhook notification bot updating you on incident details from a ticketing system) this works fine in the g/chat interface however the bot chat never appears in the bridged room.
bmccafferty commented
kafejniica commented
I can confirm that it doesn't work when the message is formatted as a card message. But it does when you send a simple text:
curl -X POST -H "Content-Type: application/json" "${WEBHOOK_URL}" -d "{\"text\": \"test message\"}"
kafejniica commented
JSON=$(cat <<EOF
{
"cards": [
{
"header": {
"title": "Hello,",
"subtitle": "world!",
"imageUrl": "https://www.gstatic.com/images/icons/material/product/2x/hangouts_64dp.png",
"imageStyle": "IMAGE"
}
}
]
}
EOF
)
curl -X POST -H "Content-Type: application/json" --data "${JSON}" $WEBHOOK_URL
Matrix: nothing
log:
[2022-06-16 15:41:12,368] [DEBUG@mau.portal.space:AAAAymn12Js] Handling Google Chat message 5pOXsMMmucE
[2022-06-16 15:41:12,370] [DEBUG@mau.portal.space:AAAAymn12Js] Unhandled Google Chat message 5pOXsMMmucE
[2022-06-16 15:41:13,824] [DEBUG@mau.portal.space:AAAAymn12Js] Unhandled event type WEB_PUSH_NOTIFICATION