- Sign in at telegram page;
- Save
api_idandapi_hash; - Get the script
tg_sign_in.pyzfrom releases; - Enter your phone number and password (if necessary);
- Enter the code you've received from the telegram app;
- Now you've got a session file (named
anon.sessionby default). Place it near thealarm.pyscript.
- Copy
config.ini.exampletoconfig.ini(orconfig_dev.iniif you want to test bot); - Populate it with the values according to the comments;
- Run
build.shto build a docker image; - If you want to just test a bot run
dev.sh. Otherwise, execute aprod.shscript.