Это простой телеграм бот, с помощью него можно получать информацию об отелях, расположенных по всему миру, в работе использует Rapid Api.
- Python (3.10)
- PyTelegramBotApi (Telegram Bot framework)
- SQLite3 (database)
- requests (2.28.1)
- telebot-calendar (1.2)
-
Необходимо скопировать все содержимое репозитория в отдельный каталог.
-
Установить все библиотеки из requirements.txt
-
Файл .env.template переименуйте в .env. Откройте его и заполните необходимыми данными. Для этого вам надо:
- Создать своего бота с помощью @BotFather, запросить токен
- Зарегистрироваться на сайте rapidapi.com/apidojo/api/hotels4/, скопировать API ключ (вкладка My Apps => Ваш API ключ => Security)
-
Запустите файл main.py.
This is a simple telegram bot, with which you can get information about hotels located around the world, it uses Rapid API in its work.
- Python (3.10)
- PyTelegramBotApi (Telegram Bot framework)
- SQLite3 (database)
- requests (2.28.1)
- telebot-calendar (1.2)
-
You need to copy all the contents of the repository to a separate directory.
-
Install all libraries from requirements.txt
-
Rename the .env.template file to .env. Open it and fill in the required data. For this you need:
- Create your own bot with @BotFather, request a token
- Register on the rapidapi.com/apidojo/api/hotels4/ website. Copy the API key (My Apps tab => Your API key => Security)
-
Run the main.py file.