Download & decrypt uploaded attachements.

- Parse the "Chat-Upload-Url" header
- Add message::schedule_download function to schedule download job
- In the job download, decrypt, save
This commit is contained in:
Franz Heinzmann (Frando)
2020-06-14 01:02:09 +02:00
parent 1350495574
commit be4d91fcb3
8 changed files with 141 additions and 15 deletions

View File

@@ -186,10 +186,11 @@ const CHAT_COMMANDS: [&str; 26] = [
"unpin",
"delchat",
];
const MESSAGE_COMMANDS: [&str; 9] = [
const MESSAGE_COMMANDS: [&str; 10] = [
"listmsgs",
"msginfo",
"openfile",
"download",
"listfresh",
"forward",
"markseen",