mtx::events::msg::Image struct

Content of m.room.message with msgtype m.image.

Public variables

std::string body
A textual representation of the image. This could be the alt text of the image, the filename of the image, or some kind of content description for accessibility e.g. 'image attachment.
std::string msgtype
Must be 'm.image'.
std::string url
The Matrix URL to the image.
mtx::common::ImageInfo info
Metadata about the image referred to in url.
std::optional<crypto::EncryptedFile> file
Encryption members. If present, they replace url.
mtx::common::Relations relations
Relates to for rich replies.
std::optional<mtx::common::Mentions> mentions
Mentioned users by this event.