diff options
author | Bohdan Horbeshko <bodqhrohro@gmail.com> | 2022-06-30 03:29:41 +0300 |
---|---|---|
committer | Bohdan Horbeshko <bodqhrohro@gmail.com> | 2022-06-30 03:29:41 +0300 |
commit | 501c1a7daa44843b1c43502167750bbb3465555d (patch) | |
tree | e0a38d2a8699cec81d81d274681c328c86bdefa7 | |
parent | 5628a15ac496d72c840a265c3dace720e2547728 (diff) |
Add IMPP to vCard4
-rw-r--r-- | xmpp/handlers.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/xmpp/handlers.go b/xmpp/handlers.go index 1222a93..1d8f2bd 100644 --- a/xmpp/handlers.go +++ b/xmpp/handlers.go @@ -421,6 +421,14 @@ func makeVCardPayload(typ byte, id, fn, photo, nickname, given, family, tel, inf Content: nickname, }, }, + }, stanza.Node{ + XMLName: xml.Name{Local: "impp"}, + Nodes: []stanza.Node{ + stanza.Node{ + XMLName: xml.Name{Local: "uri"}, + Content: "https://t.me/" + nickname, + }, + }, }) } if family != "" || given != "" { |