How to show alert in Telegram Mini Apps?


telegram TWA telegram-mini-apps

Solution:

If you use TWA SDK you need to call showAlert method from package root:

import WebApp from '@twa-dev/sdk'
...

WebApp.showAlert('This alert ');

Alert will looks like the following:

TWA Alert

comments powered by Disqus