A simple chatbot example for MGIMO Finec.
-
Obtain an individual API token from Telegram's
@FatherBot -
Clone this repo, go to repo directory:
git clone https://github.com/finec-mgimo/chatbot.git
cd chatbot
- Create text file
config.envwith following content
API_TOKEN=<your token here>
PROXY_URL=socks5h://163.172.152.192:1080
- Make sure depenencies are installed:
pip install -U -r requirements.txt
- Start the bot:
python application.py
- Talk to your bot in Telegram:
/start
/help
Произвольный текст