Rocket.Chat.Kotlin.SDK
Rocket.Chat.Kotlin.SDK copied to clipboard
[NEW] Send Location
Add feature to send a location specified by Latitude and Longitude
@mohanadrefaai What's the REST API to send this information?
@rafaelks I think it is an Attachment type.
@rafaelks It is the same API to send message (/api/v1/chat.sendMessage). We just need to add "location" param to the body of the request and the format is like that: "location": { "type": "Point", "coordinates": [ long, lat ] } It will be great also to receive message with location field to map it.
@luciofm No it is not an Attachment type. Location is sent as a separated field AFTER enabling it on the server in Message section, enable GoogleMap.