Skip to content

A telegram bot where will ask a user if a rocket was launched or not till he gets the exact frame.

Notifications You must be signed in to change notification settings

amssdias/telegram-bot

Repository files navigation

Python Badge Redis Workflow branch master Docker Code style: black

Telegram Bot

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.

🔨 Getting started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Pre requisites

Installing

  1. Clone this repository to your local machine
  2. Navigate to the project directory
git clone https://github.com/amssdias/telegram-bot.git
cd telegram-bot
  1. 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.

  2. On the ".env" file you should write your bot token like the following:

BOT_TOKEN=<YOUR_BOT_TOKEN>

Run with Docker

  1. Build the Docker image:
docker build -t telegram-bot .
  1. Run the Docker container:
docker run -it telegram-bot

Run without Docker

  1. Install Redis

  2. Install requirements with pip:

pip install -r requirements.txt
  1. Run program:
python main.py

🔎 Usage

Just follow the chat conversation on telegram.

Have fun 😄

About

A telegram bot where will ask a user if a rocket was launched or not till he gets the exact frame.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages