Hello guys! How to make click on the phone number was two actions: call and text?

Hi everyone, I’m new to coding and I could use some help. Can you please guide me on how to perform two actions on a button? I want it to function similar to the example, where it can either initiate a call or send an SMS.

Thank you!