orangecoding / fredy

:heart: Fredy - [F]ind [R]eal [E]states [D]amn Eas[y] - Fredy will constantly search for new listings on sites like Immoscout or Immowelt and send new results to you, so that you can focus on more important things in life ;)
http://www.orange-coding.net
MIT License
212 stars 54 forks source link

Telegram: Use job name instead of ID and link in title #44

Closed joschi closed 2 years ago

joschi commented 2 years ago

This PR improves the message formatting of the Telegram notification adapter.

The Telegram notification adapter is currently using the job ID (jobKey) in its message which is just a random, unique string. This makes it harder than necessary for humans to identify which job a listing originated from:

Telegram notification with job ID

The changes in this PR try to resolve the actual job name in the Telegram notification adapter and fall back to the job ID (jobKey) if the job name couldn't be resolved.

Additionally, the link to the listing is being combined with the title to make more use of the screen estate.

Before

Telegram notification before the change

After

Telegram notification after the change
orangecoding commented 2 years ago

👍🏼