dgtlmoon / dgtlmoon/changedetection.io

[feature] 'diff_changed_to' to notify only about new changes without including older stuff

Open
#3,023 7 comments 4 reactions 0 assignees View on GitHub
enhancement Notifications systems
Dominant language
Python
Stars
34.3k
Forks
2.1k
Avg merge
22h 52m
Merged PRs (30d)
70

Description

**Version and OS**
0.49.3 running in docker

**Is your feature request related to a problem? Please describe.**
Telegram has a symbol limit per message. When you try sending long changes - they trim it.
Currently, if you use any of {{diff}}, {{diff_added}}, {{diff_removed}}, {{diff_full}} - it will show & notify about changes with following format: changed FROM (removed stuff here)
TO (new added stuff).
Problem is, i'm not always needed to see which change is changed 'from'.
Mikrotik posts changelogs of their RouterOS with removing and adding new stuff. If this change is too big - telegram will trim all the new added stuff and also partially old stuff.

![Image](https://github.com/user-attachments/assets/184cc94f-75f7-4c62-9fb7-dbc8ff2ed78c)

![Image](https://github.com/user-attachments/assets/febf3acf-b520-441d-804a-722deb15a072)

**Describe the solution you'd like**
Adding 'diff_changed_to' would be nice.

**Describe the use-case and give concrete real-world examples**
Example of the url: https://changedetection.io/share/1yFcNngEl0Qa

TL;DR part: only notify about 'green' stuff (new), not all the 'red' (old) + 'green' (new)

Contributor guide

Open the contributing guide

Research direction

Start by tracing how the existing {{diff}}, {{diff_added}}, {{diff_removed}}, and {{diff_full}} variables are generated and formatted for Telegram notifications. Add the requested {{diff_changed_to}} behavior so notifications contain only the new content, then verify that existing variables remain unchanged and that long Telegram messages preserve the new portion.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.