mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-04-23 16:47:54 -04:00
It doesn't make sense to send a formatted caption without a plain text caption so using TextMessageEventContent forces the latter to be present. This also allows to use the helpful constructors of TextMessageEventContent. Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
Matrix SDK Examples
In this folder you find examples for using the matrix-sdk (and its various components) to implement specific common features, each as a separate crate. You can run each of them from the root of the repository, mind you that _ becomes - and the crate names are prefixed with example-. So to run the image bot example you can do cargo run -p example-image-bot.