shady2k / logseq-inbox-telegram-plugin

MIT License
78 stars 5 forks source link

feature request : Handling images #2

Open zifken opened 2 years ago

zifken commented 2 years ago

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

shady2k commented 2 years ago

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.

zifken commented 2 years ago

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 :

shady2k commented 2 years ago
  • 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.

bepolymathe commented 2 years ago

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

shady2k commented 2 years ago

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

L0cutus commented 2 years ago

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

shady2k commented 2 years ago

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

bepolymathe commented 2 years ago

Done

Fillll commented 7 months ago

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.