How to query contact details for linked messaging apps profiles (Specially Telegram) and launch them with tasker?

Since the TouchlessChat app was deleted from the PlayStore I am trying to create a task that simulates the behavior of it.

Right now I am able to capture my message using voice and get the contact ID with AutoContacts. Now I need to do something like:

If Telegram Send Telgram Message Else If WhatsApp Send WhatsApp Message Else Send SMS 

But I am not able to get the Telegram info for it (AutoContacts has a WhatsApp Uri). My closest friends and family use Telegram so it is almost my first option.

Is there a way to query the contact details to get the correct Telegram URI or similar so I can launch the app with it?