更新 'src/matrix-send-message.js'

This commit is contained in:
zhongjin 2023-02-13 09:51:01 +08:00
parent ddfa90bd77
commit f10fdbfab2

View File

@ -113,6 +113,21 @@ module.exports = function(RED) {
body: payload.toString()
};
//zhongjin
if (msgType === 'm.location') {
content.body = '长沙火车站, 车站中路, 五里牌街道, 芙蓉区, 长沙市, 湖南省, 410001, 中国'
content.geo_uri = "geo:28.1974439,113.0054238"
content.org.matrix.msc3488.asset= {
"type": "m.pin"
}
}
//end
if(msgFormat === 'html') {
content.format = "org.matrix.custom.html";
content.formatted_body =