This is the template repo for using to create and run your first bot with Rocketgram framework. This also demonstrates how to use the framework.
You can see working demo here.
Clone repo:
git clone https://github.com/rocketgram/rocketgram-template.git
You need copy app.env.template
to app.env
and set TOKEN
parameter to token taken from BotFather.
Then you can run bot with one of the following methods.
Create new venv
and install dependencies, then run your first bot:
python -m pip install -r requirements.txt
set -a && source app.env && set +a
cd app
python engine.py
Create new venv
and install dependencies, then run your first bot:
pipenv install -r requirements.txt
set -a && source app.env && set +a
cd app
pipenv run python engine.py
Run everything with docker:
docker run --env-file app.env --name rocketgram-template -d --restart unless-stopped rocketgram-template