Method: MatrixSdk::Protocols::CS#send_location
- Defined in:
- lib/matrix_sdk/protocols/cs.rb
#send_location(room_id, geo_uri, name, **params) ⇒ Response
Send a geographic location to a room
378 379 380 381 382 383 384 385 386 387 388 389 |
# File 'lib/matrix_sdk/protocols/cs.rb', line 378 def send_location(room_id, geo_uri, name, **params) content = { geo_uri: geo_uri, msgtype: 'm.location', body: name, info: params.delete(:extra_information) { {} } } content[:info][:thumbnail_url] = params.delete(:thumbnail_url) if params.key? :thumbnail_url content[:info][:thumbnail_info] = params.delete(:thumbnail_info) if params.key? :thumbnail_info (room_id, 'm.room.message', content, params) end |