mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-28 18:10:38 +00:00
Add command to get an attachment (#1080)
* Add command to get an attachment * Refactor retrieving of attachments to use StreamDetails * Refactor AttachmentCommand to GetAttachmentCommand * Minor improvements to GetAttachmentCommand * Use JSON serializer to serialize binary data Serializing the stream is better for memory handling than loading the whole thing into the file. * Clean up unneeded class * Added command to doc Co-authored-by: cedb <cedb@keylimebox.org>
This commit is contained in:
parent
bf76c04664
commit
2e4d346bc8
10 changed files with 138 additions and 0 deletions
|
@ -635,6 +635,20 @@ The required manifest.json has the following format:
|
|||
PATH::
|
||||
The path of the manifest.json or a zip file containing the sticker pack you wish to upload.
|
||||
|
||||
=== getAttachment
|
||||
|
||||
Gets teh raw data for a specified attachment. This is done using the ID of the attachment the recipient or group ID.
|
||||
The attachment data is returned as a Base64 String.
|
||||
|
||||
*--id* [ID]::
|
||||
The ID of the attachment as given in the attachment list of the message.
|
||||
|
||||
*--recipient* [RECIPIENT]::
|
||||
Specify the number which sent the attachment. Referred to generally as recipient.
|
||||
|
||||
*-g* [GROUP], *--group-id* [GROUP]::
|
||||
Alternatively, specify the group IDs that for which to get the attachment.
|
||||
|
||||
=== daemon
|
||||
|
||||
signal-cli can run in daemon mode and provides an experimental dbus or JSON-RPC interface.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue