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.py
and rename it toconfig.py
:REDIS_HOST
,REDIS_PORT
,REDIS_DB
,REDIS_PASSWORD
from Redis configuration.POSTGRESQL_DBNAME
,POSTGRESQL_HOST
,POSTGRESQL_PORT
,POSTGRESQL_USER
,POSTGRESQL_PASSWORD
from PostgreSQL configuration.- In
BOT_TOKEN
insert the Telegram Bot API token from BotFather. - In
SCHOOL_YEAR_BEGINNING
insert the school year's beginning date by editing thedt(...)
object. Note: the "day" param must be "1". - In
SCHOOL_YEAR_END
insert the school year's ending date by editing thedt(...)
object. Note: the "day" param must be the last day of the month.