https://github.com/amssdias/telegram-bot
A telegram bot where will ask a user if a rocket was launched or not till he gets the exact frame.
https://github.com/amssdias/telegram-bot
docker pytelegrambotapi python3 redis unittest
Last synced: 4 months ago
JSON representation
A telegram bot where will ask a user if a rocket was launched or not till he gets the exact frame.
- Host: GitHub
- URL: https://github.com/amssdias/telegram-bot
- Owner: amssdias
- Created: 2023-02-16T20:42:09.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-02-20T23:45:25.000Z (over 2 years ago)
- Last Synced: 2025-01-13T19:24:31.918Z (5 months ago)
- Topics: docker, pytelegrambotapi, python3, redis, unittest
- Language: Python
- Homepage:
- Size: 70.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[python-download]: https://www.python.org/downloads/
[redis-download]: https://redis.io/download/
[telegram-bot-tutorial]: https://medium.com/geekculture/generate-telegram-token-for-bot-api-d26faf9bf064


[](https://https://docker.com/)
[](https://github.com/psf/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.
## :hammer: 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
- [Python][python-download] - 3.9
- [Redis][redis-download]
- [Docker](https://www.docker.com/) (Optional)### 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
```3. 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][telegram-bot-tutorial].
4. On the ".env" file you should write your bot token like the following:```
BOT_TOKEN=
```#### Run with Docker
1. Build the Docker image:
```
docker build -t telegram-bot .
```2. Run the Docker container:
```
docker run -it telegram-bot
```#### Run without Docker
1. Install [Redis][redis-download]
2. Install requirements with pip:
```python
pip install -r requirements.txt
```3. Run program:
```python
python main.py
```## :mag_right: Usage
Just follow the chat conversation on telegram.
Have fun :smile: