soberhacker / obsidian-telegram-sync

Transfer messages and files from Telegram to Obsidian
GNU Affero General Public License v3.0
303 stars 30 forks source link

Simplify one file telegram log #273

Closed dxcore35 closed 6 months ago

dxcore35 commented 6 months ago

Is it possible to create ONE FILE with this format?

# 2024-05-12
- 08:00: Testing message
- 19:30: Another message

I dont want to see the text "forwarded from", I will be only one using this. I see this unnecessary. Thank you very much. Amazing plugin, this was really missing feature for quick add via mobile phone.

soberhacker commented 6 months ago

Thanks :)

Yes, it is possible

create following template file and use it in your distribution rule

{{messageTime:HH:mm}}: {{content:text}}

More details you can find here

https://github.com/soberhacker/obsidian-telegram-sync/blob/main/docs%2FTemplate%20Variables%20List.md

dxcore35 commented 6 months ago

Thank you very much for quick reply! The template works.

What I would like add is that command {{content}} - forwarded from + file | image + message text

I would like to have command that with produce {{content:clean}} - file | image + message text

Basically it will remove "forwarded from" or you can read allowed user from plugin settings and then you will omit "forwarded from".

Again thank you for the plugin. It is going to change the way I'm using the Obsidian. Looking for more integration with daily notes! 🎶

soberhacker commented 6 months ago

Screenshot_20240211-214408.png

It is also possible

soberhacker commented 6 months ago

Combine variables as desired :)

For assistance, feel free to inquire within the Telegram community Telegram Chat Group