mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-30 11:00:38 +00:00
Add sticker pack url to list output
This commit is contained in:
parent
99eef05084
commit
8a5f98dac6
10 changed files with 133 additions and 44 deletions
|
@ -43,10 +43,10 @@ public class UploadStickerPackCommand implements JsonRpcLocalCommand {
|
|||
try {
|
||||
var url = m.uploadStickerPack(path);
|
||||
if (outputWriter instanceof PlainTextWriter writer) {
|
||||
writer.println("{}", url);
|
||||
writer.println("{}", url.getUrl());
|
||||
} else {
|
||||
final var writer = (JsonWriter) outputWriter;
|
||||
writer.write(Map.of("url", url));
|
||||
writer.write(Map.of("url", url.getUrl()));
|
||||
}
|
||||
} catch (IOException e) {
|
||||
throw new IOErrorException("Upload error (maybe image size too large):" + e.getMessage(), e);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue