import datetime as dt
from notte_sdk.client import NotteClient
notte = NotteClient()
# retrieve an existing persona or use console.notte.cc/personas to create a new one
persona = notte.Persona("<my-persona-id>")
# read recent sms (received in the past 5 minutes)
recent_sms = persona.sms(
only_unread=True,
limit=10,
timedelta=dt.timedelta(minutes=5),
)
print(f"Recent sms: {recent_sms}")