From 326f547ae67e48604934396a7d42df3aa19d2285 Mon Sep 17 00:00:00 2001 From: Frieder Griesshammer Date: Fri, 9 Feb 2024 19:05:26 +0100 Subject: [PATCH] Add Telegram --- src/components/ActionButtons.vue | 5 +++++ src/main.js | 2 ++ src/settings.js | 2 +- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/components/ActionButtons.vue b/src/components/ActionButtons.vue index bb0e5bc..6e1d6cc 100644 --- a/src/components/ActionButtons.vue +++ b/src/components/ActionButtons.vue @@ -94,6 +94,11 @@ export default { 'fa-solid fa-sms', `sms:${this.number}`, ), + telegram: make( + 'Telegram', + 'fa-brands fa-telegram', + `tg://resolve?phone=${this.countryCallingCode}${this.nationalNumber}`, + ), viber: make( 'Viber', 'fa-brands fa-viber', diff --git a/src/main.js b/src/main.js index 717194b..5e2ee89 100644 --- a/src/main.js +++ b/src/main.js @@ -9,6 +9,7 @@ import { import { faSignalMessenger, faSkype, + faTelegram, faViber, faWhatsapp, } from '@fortawesome/free-brands-svg-icons'; @@ -28,6 +29,7 @@ library.add( faSignalMessenger, faSkype, faSms, + faTelegram, faTrash, faViber, faWhatsapp, diff --git a/src/settings.js b/src/settings.js index 7aecefb..1d097b8 100644 --- a/src/settings.js +++ b/src/settings.js @@ -7,7 +7,7 @@ export default (name) => { 'phone', 'sip', 'sms', 'fax', ], buttonsRight: [ - 'whatsapp', 'signal', 'viber', 'skype', + 'whatsapp', 'telegram', 'signal', 'viber', 'skype', ], defaultCountry: 'NL', };