Skip to content

Scheduler for muting group & user notifications on Telegram.

License

Notifications You must be signed in to change notification settings

jasbanza/telegram-mute-scheduler

Repository files navigation

telegram-mute-scheduler

Scheduler for muting group & user notifications on Telegram.

Please note: this is a work-in-progress and therefore instructions are not final.

  • Web dashboard is under construction which will be used to edit and view schedules.

Prerequisites:

Setup Instructions:

1) Set up files

Clone repo
git clone https://github.com/jasbanza/telegram-mute-scheduler.git
Navigate to project root and install node dependencies
cd telegram-mute-scheduler
npm install
Create config.json from template and edit, making sure to set the telegram API details accordingly:
cp /config/config-template.json /config/config.json
Set permissions on config folder so that the background service (root) can create and save the Telegram session.json:
chown root -R config
chmod 766 -R config
Optional - update path to node executable for the ExecStart property in the service file. (root's path might differ to the logged in user / nvm's path, and if it's an older version of nodejs, it might break stuff...)
which node

2) Set up background service

Copy the .service file into /etc/systemd/system/
cp telegram-mute-scheduler.service /etc/systemd/system/telegram-mute-scheduler.service
Make it executable
sudo chmod 755 /etc/systemd/system/telegram-mute-scheduler.service
Restart systemctl to register the new service
systemctl daemon-restart
Check status of mute scheduler background process:
systemctl status telegram-mute-scheduler.service
Any errors can be found in the log:
journalctl -u telegram-mute-scheduler.service

3) Expose web service

Allow port 3000 through firewall
sudo ufw allow 3000
Check if web server is accessible on port 3000

About

Scheduler for muting group & user notifications on Telegram.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published