draft openTelegram

This commit is contained in:
Matteo Manzinello 2019-07-19 11:57:34 +02:00
parent 248f29c12d
commit bb429d3f7e

View File

@ -487,16 +487,13 @@ const actions = {
mailToEncoded(encEmail);
},
openWhatsApp: tel => {
openWhatsApp: (tel, msg = "") => {
let waUrl = "https://wa.me/" + tel;
window.open(waUrl, "_blank");
},
openTelegram: tel => {
// TODO
let tgUrl = "";
openTelegram: (tel, msg = "") => {
let tgUrl = "tg://msg?text=" + msg + "&to=" + tel;
window.open(tgUrl, "_blank");
},