Usage
Make sure to install the dependencies using above steps first.
Configure the
BOT INFO
,TIMEZONE DATA
andUNIVERSITY INFO
inbla_bot.py
.To choose the correct time zone for
TIME_ZONE
, you can query all the supported time zones like this (run this in a separate terminal):python3 -c "import pytz; print(pytz.all_timezones)"
Type the name of the time zone you want to use in
TIME_ZONE
variable.Replace university name, short name, and other info in
UNIVERSITY_INFO
section.
The data files (inside
/DATA
directory) must be filled and formatted as requested, before encrypting. Then runencrypt_data.py
file (inside/DATA
directory) to properly encrypt all the data. (Read More)Obtain a telegram bot token from BotFather (This will be needed as we proceed further.). Start a conversation with BotFather on Telegram and follow the instructions to create a new bot. You will receive a token that you can use to authorize your bot and send requests to the Bot API.
Obtain your personal chat id (This is what we call
DEV_CHAT_ID
) and group chat id (This is what we callGROUP_CHAT_ID
, id of the group that you're going to add the bot) using IDBot (These ids will be needed as we proceed further.). Start a conversation with IDBot on Telegram and follow the instructions to get your chat ids.
Do not share your TELEGRAM_TOKEN
and SECRET_KEY
with anyone. These are sensitive information and should be kept secret!