Company
Date Published
Author
Matt Makai
Word count
1900
Language
English
Hacker News points
None

Summary

This Bottle web app can send and receive text and picture messages using the Twilio RESTful API. It uses Python 2 or 3, the Bottle web framework, and the Twilio Python helper library to interact with the Twilio messaging API. The app has two routes: one for testing and another that handles incoming HTTP POST requests from Twilio when an SMS or MMS is sent to a phone number associated with the app. The app can send outbound SMS messages with or without attached picture messages, and it can also respond to inbound SMS and MMS messages using a Twilio POST request handler. Ngrok is used for localhost tunneling to expose the app's URL and allow Twilio to send HTTP requests to it during development.