This is a bot where will show different images to the user, asking if the rocket has taken off yet (which you can know by looking at the countdown on the top-right corner of the video). Based on the answers, it will use a bisection algorithm to find the first image where the rocket launches, helping to pinpoint its occurrence date. There are 61696 frames in the video but you can find the interesting frame in only 16 steps.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- Clone this repository to your local machine
- Navigate to the project directory
git clone https://github.com/amssdias/telegram-bot.git
cd telegram-bot
-
You should create a bot easily on telegram. You can see a tutorial on how to create a bot and get the token in here.
-
On the ".env" file you should write your bot token like the following:
BOT_TOKEN=<YOUR_BOT_TOKEN>
- Build the Docker image:
docker build -t telegram-bot .
- Run the Docker container:
docker run -it telegram-bot
-
Install Redis
-
Install requirements with pip:
pip install -r requirements.txt
- Run program:
python main.py
Just follow the chat conversation on telegram.
Have fun 😄