matrix-org / gomatrix

A Golang Matrix client
Apache License 2.0
285 stars 53 forks source link

add SendHTML method #58

Closed paulbdavis closed 3 years ago

paulbdavis commented 5 years ago

Adds a method to send the exising HTMLMessage

Compared to the SendText method I added an argument to specify the message type for sending "m.notify" or "m.emote" rather than only "m.text"

kegsay commented 3 years ago

Whilst the code is fine, I don't think this is appropriate for the API, given we have things like https://github.com/matrix-org/gomatrix/pull/82 now. Having multiple ways to do the same thing isn't very Go-like, hence unfortunately I'll have to close this PR. Thanks for your effort on it though!