Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Direct chats with bots do not get bridged correctly. #62

Open
bmccafferty opened this issue Feb 10, 2022 · 3 comments
Open

Direct chats with bots do not get bridged correctly. #62

bmccafferty opened this issue Feb 10, 2022 · 3 comments

Comments

@bmccafferty
Copy link

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
Copy link
Author

To make issue clear example screenshots attached of g/chat and matrix rooms.

G-Chat:
gchat-bot

Matrix:
g-chat-matrix

@kafejniica
Copy link

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
Copy link

kafejniica commented Jun 16, 2022

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

G-Chat:
card_message

Matrix: nothing

log:

[2022-06-16 15:41:12,368] [[email protected]:AAAAymn12Js] Handling Google Chat message 5pOXsMMmucE
[2022-06-16 15:41:12,370] [[email protected]:AAAAymn12Js] Unhandled Google Chat message 5pOXsMMmucE
[2022-06-16 15:41:13,824] [[email protected]:AAAAymn12Js] Unhandled event type WEB_PUSH_NOTIFICATION

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants