Skip to main content

AndroidMessage

Message displayed in an Android AndroidMessagingStyle conversation.

Properties

  • person - Participant who sent this message.
  • text - Text content of the message.
  • timestamp - Time the message arrived.

Properties​

personinstance-attribute​

person: AndroidPerson

Participant who sent this message.

Note

For an outgoing message, pass the same participant used as AndroidMessagingStyle.person; this API requires an explicit person.

textinstance-attribute​

text: str

Text content of the message.

timestampinstance-attribute​

timestamp: datetime

Time the message arrived.

Timezone-aware values preserve their instant. A naive datetime is interpreted in the Python host's local timezone.