Skip to content

Latest commit

 

History

History
32 lines (18 loc) · 1.04 KB

README.md

File metadata and controls

32 lines (18 loc) · 1.04 KB

Notify once fragmented text

Auto snoozes subsequent messages from the same sender within a certain time window (e.g. 1 minute).

This feature help you to avoid multiple annoying notifications for people writing fragmented text. In the following example, instead of receiving three notifications you will receive only the first one.

[10:00:00] hey

[10:00:10] how are you?

[10:00:20] all good?

Additionally, you could set the following environment variables:

  • TIME_WINDOW_SECONDS, time window in seconds (by default, 60)

Internally the feature is implemented with a kind of throttling mechanism based on expiringdict library.

Feature suggestion

Add TG Android's "Smart Notifications" feature to all Telegram notifications

Closest feature

Smart Notifications in groups only!

  1. Open group
  2. Notifications, click Customize
  3. Smart Notifications

References

  • expiringdict: dictionary with auto-expiring values for caching purposes.