kopia lustrzana https://github.com/tmsmr/xmpp-webhook
Send messages as Type stanza.ChatMessage
rodzic
3f89306909
commit
8bf309a189
2
main.go
2
main.go
|
@ -115,6 +115,7 @@ func main() {
|
|||
reply := MessageBody{
|
||||
Message: stanza.Message{
|
||||
To: msg.From.Bare(),
|
||||
Type: stanza.ChatMessage,
|
||||
},
|
||||
Body: msg.Body,
|
||||
}
|
||||
|
@ -139,6 +140,7 @@ func main() {
|
|||
_ = xmppSession.Encode(MessageBody{
|
||||
Message: stanza.Message{
|
||||
To: recipient,
|
||||
Type: stanza.ChatMessage,
|
||||
},
|
||||
Body: m,
|
||||
})
|
||||
|
|
Ładowanie…
Reference in New Issue