You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: deltachat-jsonrpc/src/api.rs
+128-1Lines changed: 128 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -49,7 +49,7 @@ use types::chat::FullChat;
49
49
use types::contact::{ContactObject,VcardContact};
50
50
use types::events::Event;
51
51
use types::http::HttpResponse;
52
-
use types::message::{MessageData,MessageObject,MessageReadReceipt};
52
+
use types::message::{MessageData,MessageObject,MessageReadReceipt,QuotedText};
53
53
use types::provider_info::ProviderInfo;
54
54
use types::reactions::JSONRPCReactions;
55
55
use types::webxdc::WebxdcMessageInfo;
@@ -2022,6 +2022,133 @@ impl CommandApi {
2022
2022
}
2023
2023
}
2024
2024
2025
+
/// Create a new draft (overwriting existing draft)
2026
+
///
2027
+
/// You can modify some fields of an existing draft while keeping it's message id (important to keep webxdc status updates) with the following methods:
2028
+
/// - [Self::draft_set_text]
2029
+
/// - [Self::draft_set_quoted_message]
2030
+
/// - [Self::draft_set_quoted_text]
2031
+
/// For other actions like changing the view type or file attachment you have to recreate the draft.
2032
+
///
2033
+
/// You can send the draft with [Self::send_draft]
0 commit comments