Problem with Telegram

Hi,
I use telegram script in mikrotik and i have a problem…
here the telegram is blocked by ISP. I use vpn to unblock it…
After using and enabling vpn in mikrotik when i ping telegram API from tools/ping every thing is ok…
but my script not working and when i ping the api from terminal its ping an unknown ip address
How I can Fix it?
Thanks

I found the problem and fixed it
need to add this lines to mikrotik

/ip dns static
add address=149.154.167.220 name=api.telegram.org
/ip route
add distance=1 dst-address=149.154.160.0/20 gateway=***VPNCONNECTION