kivyfreakt / pool_bot

Telegram bot for conducting a survey and compiling a portrait of the audience.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pool_bot

Telegram bot for conducting a survey and compiling a portrait of the audience.


Dependencies

The application requires the telebot library and others

A complete list of dependencies can be found in the requirements.txt file.

Installing all dependencies:

pip install -r requirements

Setting up

The configuration file is config.py

In the file you must specify the access token received from the bot father and the ID of the administrator

The config.py file should look like this:


TOKEN_API = 'your token'
ADMIN = 00000000

You need to specify your questions in the file questions.py

You can also change the bot's default responses in the [texts.py] file (survey/texts.py)

Starting the application

Run the script:

python main.py

Deploying the application

Build a docker image:

docker build -t pool_bot .

Running the docker container:

docker run -d --name bot pool_bot

About

Telegram bot for conducting a survey and compiling a portrait of the audience.


Languages

Language:Python 96.6%Language:Dockerfile 3.4%