Ada - A telegram bot for AWS Cloud Community Telegram Group. Hosted on AWS EC2.
1. Clone this repo by running either of the below commands.
https : `git clone https://github.com/AWS-Cloud-Community-LPU/Ada_TelegramBot.git`
ssh : `git@github.com:AWS-Cloud-Community-LPU/Ada_TelegramBot.git`
2. Now, run the following commands:
cd Ada_TelegramBot
pip install -r requirements.txt
This will install all the project dependencies.
3. Configure Missing Files:
File: config.ini
echo "[KEYS]\nAPI_KEY = 123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11\nCALENDAR_ID = GOOGLE_CALENDER_ID_HERE\nCHANNEL_ID = TELEGRAM_CHANNEL_ID_HERE\n\n
[PROJECT]
TITLE_FILE = titles.txt
DEVELOPERS = USERNAME_OF_DEV(s)_COMMA_SEPERATED" > config.ini
A file config.ini
is missing as it contains a token to access the HTTP API of Ada and other secrets of this project. The file is structured in this way:
[KEYS]
API_KEY = 123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11
CALENDAR_ID = GOOGLE_CALENDER_ID_HERE
CHANNEL_ID = TELEGRAM_CHANNEL_ID_HERE
[PROJECT]
TITLE_FILE = titles.txt
DEVELOPERS = USERNAME_OF_DEV(s)_COMMA_SEPERATED
File: titles.txt
touch titles.txt
A file titles.txt
contains all titles of brodcasted news so that duplicate news cannot be sended. You need to configure this on 'config.ini'.
4. 🎉 Run the bot:
python3 main.py
MIT © AWS Cloud Community LPU