Skip to content

rocketgram/rocketgram-template

Repository files navigation

Template of bot with Rocketgram

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.

Run your first bot

Prepare environment

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.

Run with venv

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

Run with pipenv

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 with docker

Run everything with docker:

docker run --env-file app.env --name rocketgram-template -d --restart unless-stopped rocketgram-template