Telegram bot for the most popular electronic register in Italy
- Install Redis and PostgreSQL.
- Create a database and credentials on PostgreSQL.
- Install Python >3.6 and pip on your machine.
- Create your own Telegram bot from @BotFather and take note of the bot token
$ <python executable> -m pip install -r requirements.txt- Edit
config.sample.pyand rename it toconfig.py:REDIS_HOST,REDIS_PORT,REDIS_DB,REDIS_PASSWORDfrom Redis configuration.POSTGRESQL_DBNAME,POSTGRESQL_HOST,POSTGRESQL_PORT,POSTGRESQL_USER,POSTGRESQL_PASSWORDfrom PostgreSQL configuration.- In
BOT_TOKENinsert the Telegram Bot API token from BotFather. - In
SCHOOL_YEAR_BEGINNINGinsert the school year's beginning date by editing thedt(...)object. Note: the "day" param must be "1". - In
SCHOOL_YEAR_ENDinsert the school year's ending date by editing thedt(...)object. Note: the "day" param must be the last day of the month.