monicahq / monica

Personal CRM. Remember everything about your friends, family and business relationships.
https://beta.monicahq.com
GNU Affero General Public License v3.0
21.66k stars 2.17k forks source link

Telegram prefix/Multiple handlers #1077

Open yarons opened 6 years ago

yarons commented 6 years ago

https://github.com/monicahq/monica/blob/1e1e984baf52156d1c7b6e44ba93cb89643f341d/database/migrations/2017_11_10_174654_create_contact_fields_table.php#L103

Hey guys, I'm not sure telegram: is the correct handler, from what I remember it's tg:, this is the situation in TDesktop according to this bug: https://github.com/telegramdesktop/tdesktop/issues/2955 Maybe multiple handlers support would solve this case (telegram://, tg://, https://t.me).

Furthermore, there are the http://t.me/@telegram links that might be a better idea in this case.

I think for WhatsApp this is their URL sceme (whatsapp://): https://www.macstories.net/tutorials/use-whatsapps-url-scheme-with-drafts-launch-center-pro-or-a-bookmarklet/

djaiss commented 6 years ago

Thanks @yarons.

It will be pretty easy to fix this.

FranklinYu commented 1 year ago

I would vote for t.me links, as they fallback gracefully if the browser doesn’t recognize the Telegram app. By the way, it is http://t.me/username (without the @ sign). See official documentation here: https://core.telegram.org/api/links