Outgoing Edited Message#
The OutgoingMessage update is triggered when a message is sent from the business. It contains information about the message being sent, including its content and metadata.
- class pywa.types.OutgoingMessage#
A message that is sent by the business (Also known as Echo message).
- Variables:
id β The message ID (If you want to reply to the message, use
message_id_to_replyinstead).metadata β The metadata of the message (which phone number was sent from).
type β The message type (See
MessageType).to_user β The recipient of the message.
chat β The chat where the message was sent to (private or group).
timestamp β The timestamp when the message was sent (in UTC).
reply_to_message β The message to which this message is a reply (if any).
forwarded β Whether the message was forwarded.
forwarded_many_times β Whether the message was forwarded more than 5 times. (when
True,forwardedwill beTrueas well)text β The text of the message.
image β The image of the message.
video β The video of the message.
sticker β The sticker of the message.
document β The document of the message.
audio β The audio of the message.
voice β The voice note of the message (shorthand for
audioif itβs a voice note).caption β The caption of the message media (Optional, only available for image video and document messages).
reaction β The reaction of the message.
location β The location of the message.
contacts β The contacts of the message.
order β The order of the message.
unsupported β The unsupported content of the message.
error β The error of the message.
shared_data β Shared data between handlers.