zevlg / telega.el

GNU Emacs telegram client (unofficial)
https://zevlg.github.io/telega.el/
GNU General Public License v3.0
1.09k stars 85 forks source link

Notifications don't work without adding `telega-notifications-chat-message` to `telega-chat-post-message-hook` #488

Closed flexibeast closed 1 month ago

flexibeast commented 1 month ago

OS: Gentoo Emacs: 29.4 Telega: 0.8.291, installed from MELPA (as telega-20240812.911)

Enabling telega-notifications-mode alone isn't sufficient to enable notifications; i found i needed to add:

(add-hook 'telega-chat-post-message-hook 'telega-notifications-chat-message)

to my setup.

i can confirm that telega-time-seconds shows the correct time.

zevlg commented 1 month ago

Make sure you have enabled telega-notifications-mode with (telega-notifications-mode 1) in your setup

flexibeast commented 1 month ago

Oh, sorry, i'd misread the instructions as saying to setq telega-notifications-mode to 1, rather than saying (as they actually do) to call the telega-notifications-mode function. My apologies for the noise; closing.