soberhacker / obsidian-telegram-sync

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

Filtering Messages by Channels #313

Closed Crusader-83 closed 3 weeks ago

Crusader-83 commented 3 weeks ago

I wanted to filter all messages which are forwarded by a certain channel with the function {{forwardFrom=Value}} This didn't work out Then I added {{all}}{{forwardFrom=Value}} that didn't work aswell Help

soberhacker commented 3 weeks ago

The channel name must be complete and absolutely accurate, including emojis and Unicode characters. For example, {{forwardFrom=𝔸𝔽 π•π”Έπ•Œπ•ƒπ•‹ πŸ‡ΊπŸ‡Έ}}

{{all}}{{forwardFrom=Value}}: such a condition doesn't make sense. It should be divided into two distribution rules. For example, the first rule has the condition {{forwardFrom=𝔸𝔽 π•π”Έπ•Œπ•ƒπ•‹ πŸ‡ΊπŸ‡Έ}} and creates notes only for the 𝔸𝔽 π•π”Έπ•Œπ•ƒπ•‹ channel in a folder named 'Favorite channel'. The second rule has the condition {{all}} and creates notes for all other messages in the 'Others' folder