Forum Archive

Phone Call

NoBetterName

Can Pythonista make a phone call? I prefer to do this in my app, not loading the phone app.

lukaskollmer

Kinda. While there is no API to make a phone call, you can use the webbrowser module to open a tel:PHONE_NUMBER url. This will show a dialog, asking for confirmation to initiate the call. This should work for you since, when the call ends, you automatically return to Pythonista.

For example, this code makes a call to Amazon Germany:

import webbrowser
webbrowser.open('tel:+49-800-2629663')
bode_lothar

015238994981