RocketChat / Rocket.Chat.Go.SDK

Go SDK for REST API and Realtime api
MIT License
60 stars 58 forks source link

Feature: Modify SendMessage function to take a models.Message parameter instead of a string #26

Open ZakiChammaa opened 5 years ago

ZakiChammaa commented 5 years ago

Hi!

The function SendMessage(channel *models.Channel, text string) in realtime/messages.go currently takes a string and creates a models.Message variable in the function before sending it. This really limits what we can send to rocket.chat (we need to send attachments with the message for example).

I propose the following:

Please let me know what you think about each of the above points. I can start working on a PR as soon as you approve these propositions.

Thanks!

debdutdeb commented 3 years ago

This issue can be closed now.