matrix-org/matrix-appservice-bridge

Is it possible to communicate with bridge directly through an API and not through messages?

Closed this issue · 2 comments

In documentation I didn't find an explanation how to communicate with a bridge directly through an API. Currently I see that communication can only happen through chat messages commands. Is there a way to communicate through an API?

Hello! You can implement this with ProvisioningApi:

export class ProvisioningApi {

Unfortunately I don't think this is documented, but here is an example of another project making use of it which might help you get started: https://github.com/matrix-org/matrix-hookshot/blob/f7ccacb429e7f90918170fbe573f887348e1f945/src/Widgets/BridgeWidgetApi.ts#L15

I think this probably covers the question, thanks Justin.