Adds a message to device chat.
(
context: &Context,
label: Option<&str>,
msg: Option<&mut Message>,
)
| 4900 | |
| 4901 | /// Adds a message to device chat. |
| 4902 | pub async fn add_device_msg( |
| 4903 | context: &Context, |
| 4904 | label: Option<&str>, |
| 4905 | msg: Option<&mut Message>, |
| 4906 | ) -> Result<MsgId> { |
| 4907 | add_device_msg_with_importance(context, label, msg, false).await |
| 4908 | } |
| 4909 | |
| 4910 | /// Returns true if device message with a given label was ever added to the device chat. |
| 4911 | pub async fn was_device_msg_ever_added(context: &Context, label: &str) -> Result<bool> { |