Track changes
xamgore opened this issue · 0 comments
xamgore commented
Sometimes people post news and change them in time (like, 1 hour, 1 day). It is important to update instant view previews too.
Grab RSS feed, go through items:
- if the item is new:
- send link to telegram
- save messages' ids
- save text of the item's text
- if the item is old:
- compute hash
- check with stored hash
- if same: do nothing
- else: update telegram messages and resave hash
Links must have the following format:
https://mmcs.sfedu.ru/...?rhash=...&h={item text hash}