osmbot icon indicating copy to clipboard operation
osmbot copied to clipboard

Add support to tel URI for phone and mobile data

Open airon90 opened this issue 3 years ago • 5 comments

Right now, a telephone number is shown in plain text. The bot should use link in order to start a call: instead of +XXXXXXX there should be an URL to tel:+XXXXXXX

airon90 avatar Apr 18 '21 17:04 airon90

Thank you Michael I will change it as soon I can

Xevib avatar Apr 18 '21 18:04 Xevib

Thank you :)

airon90 avatar Apr 18 '21 20:04 airon90

@airon90 I checked it and I have two doubts. In wich Telegram application it happens? (Telegram desktop ,mobile Android or IOs) In wich command happens? on /detailsnod1819099866 or /phonenod1819099866

Xevib avatar Apr 19 '21 05:04 Xevib

In wich Telegram application it happens? (Telegram desktop ,mobile Android or IOs)

Mobile (Android) and desktop

In wich command happens? on /detailsnod1819099866 or /phonenod1819099866

No command, I used the inline bot: I wrote @osmbot, looked for the element I was looking for and chose it. I tested /detailsnod5976037776 right now and it shows raw data of phone too. /phonenod5976037776 is not working.

FYI the element is https://www.openstreetmap.org/node/5976037776

airon90 avatar Apr 19 '21 06:04 airon90

@airon90 I did the change but it seems that this depends on the Telegram client https://github.com/Xevib/osmbot/commit/2a9d474c6e597311b42f41eaebe4fd244e30ce1c

Seems there is more people with the same issue https://stackoverflow.com/questions/40590683/how-to-make-phone-number-a-link-in-telegram-bot

Xevib avatar Apr 19 '21 12:04 Xevib