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

"Reversed Order" and "Heading" parameters ignored when retrieving a message with files attached #295

Open aVariengien opened 2 months ago

aVariengien commented 2 months ago

When the bot gets a message with an attached file (I only tested with images) to add to an existing note, it always adds the content at the end of the note. This happens regardless of the "Heading" and "Reversed Order" settings in the rule. Whether the files are linked in the content or not, as long as the message has an attached file, this behavior occurs.

Current fix

  1. Keep the field "File path template" empty.
  2. Edit the code to set the default value of reversedOrder to true instead of false. This is a dirty patch but it was really helpful for me.