logseq-inbox-telegram-plugin icon indicating copy to clipboard operation
logseq-inbox-telegram-plugin copied to clipboard

feature request : Handling images

Open zifken opened this issue 3 years ago • 9 comments

This is a great project that I've been using for quite some time. I think a way to improve the productivity of a user would be the possibility of adding image uploading as a block. I don't know if it's even possible, but I often need to quickly send the picture of a receipt or a document that i want to deal with later. Although the beta mobile app of Logseq is very good I find the telegram now + Logseq later much smoother. Thank you

zifken avatar Jan 24 '22 00:01 zifken

At this moment you can send url with picture as text. About saving picture as asset in Logseq, I'm not sure, that this action possible by Logseq plugin API, I will check.

shady2k avatar Jan 24 '22 08:01 shady2k

Thank you for your response. Apparently it is possible according to this phonetonote plugin issue. However an approach could be to simply get the image URL from telegram and use a workflow like :

  • get assets folder from logseq API
  • save image with telegram URL + fetch and fs to the folder
  • insert link to the editor with image URL I would try but I can't seem to find the full logseq plugin API if it even exists.

zifken avatar Jan 24 '22 12:01 zifken

  • save image with telegram URL + fetch and fs to the folder

As I know, fs module cannot be used inside plugins. This operation denied by Logseq.

shady2k avatar Jan 24 '22 15:01 shady2k

I’am interesting for that too if it’s possible. For images or any files...

bepolymathe avatar Jan 25 '22 15:01 bepolymathe

Yes, I want this feature too. I will ask logseq developers about it.

shady2k avatar Jan 25 '22 16:01 shady2k

It is a plus also for me thanks for this great plugin!

L0cutus avatar Jan 26 '22 19:01 L0cutus

I'm just created discussion on forum, please, add your voice. https://discuss.logseq.com/t/feature-request-ability-to-write-assets-from-plugin-api/5047

shady2k avatar Jan 27 '22 14:01 shady2k

Done

bepolymathe avatar Jan 27 '22 15:01 bepolymathe

I'm just created discussion on forum, please, add your voice. https://discuss.logseq.com/t/feature-request-ability-to-write-assets-from-plugin-api/5047

✅ Done.

Fillll avatar Jan 07 '24 01:01 Fillll