I'd like to get the body of an SMS message sent to my Twilio number saved as a string in my python program. I can't find any documentation on how to do this. I have a program that lets me know when a new message is sent, but I don't know how to access it.
from twilio.rest import TwilioRestClient
from TwilioPasswords import *
client = TwilioRestClient(account_sid, auth_token)
messages = client.messages.list()
<twilio.rest.resources.messages.Message object at 0x03462DB0>