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

Matrix Agent #2860

Open
ptman opened this issue Aug 21, 2020 · 2 comments
Open

Matrix Agent #2860

ptman opened this issue Aug 21, 2020 · 2 comments

Comments

@ptman
Copy link

ptman commented Aug 21, 2020

Can be emulated using the Post Agent:

{
  "post_url": "https://matrix-client.matrix.org/_matrix/client/r0/rooms/{% credential matrix_room_id %}/send/m.room.message/{{txnid}}",
  "expected_receive_period_in_days": "1",
  "content_type": "json",
  "method": "put",
  "payload": {
    "msgtype": "m.notice",
    "body": "{{content}}"
  },
  "headers": {
    "Authorization": "Bearer {% credential matrix_auth_token %}"
  },
  "emit_events": "false",
  "no_merge": "false",
  "output_mode": "clean"
}

But could be much improved to just take a room id, mxid, token and message (maybe msgtype, but m.notice is recommended for automation). And should generate a unique txnid (is there something that could be used instead?)

@ptman
Copy link
Author

ptman commented Aug 21, 2020

@ptman
Copy link
Author

ptman commented Aug 27, 2020

#2866

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

No branches or pull requests

1 participant