JIITODC's very own telegram bot!
Take a look at the contributing guide to get started!
- Ping BotFather on Telegram
- Send
/start
- Send
/newbot
to create a new bot - You'll be prompted for a name and username for your bot, send them
- You'll get a bot API token similar to:
xxxxxxxxxx:xxx-xxxx_TE9i5t9Fm4Pf9lyopLvw7Gk4ag
- Install pip using your system's package manager:
Example for ubuntu
sudo apt install python3-pip
verify the installation by:pip3 --version
- Clone this repository and install python dependencies using:
pip3 install -r requirements.txt
- Set two environment variables from your terminal namely,
export bot_name="<your bot's name that you presented to botfather>" export token="<token presented by botfather>"
- Make a file
data_file.json
and write{}
in it - Make the changes you want to
- Run the bot with:
python3 bot.py
- Add the bot to a group and test your changes