Skip to content

semenkulikov/python_telegram_bot

Repository files navigation

Hotel Search Bot

Это простой телеграм бот, с помощью него можно получать информацию об отелях, расположенных по всему миру, в работе использует Rapid Api.

Used technology

  • Python (3.10)
  • PyTelegramBotApi (Telegram Bot framework)
  • SQLite3 (database)
  • requests (2.28.1)
  • telebot-calendar (1.2)

Installation

  1. Необходимо скопировать все содержимое репозитория в отдельный каталог.

  2. Установить все библиотеки из requirements.txt

  3. Файл .env.template переименуйте в .env. Откройте его и заполните необходимыми данными. Для этого вам надо:

    • Создать своего бота с помощью @BotFather, запросить токен
    • Зарегистрироваться на сайте rapidapi.com/apidojo/api/hotels4/, скопировать API ключ (вкладка My Apps => Ваш API ключ => Security)
  4. Запустите файл main.py.

Hotel Search Bot

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.

Used technology

  • Python (3.10)
  • PyTelegramBotApi (Telegram Bot framework)
  • SQLite3 (database)
  • requests (2.28.1)
  • telebot-calendar (1.2)

Installation

  1. You need to copy all the contents of the repository to a separate directory.

  2. Install all libraries from requirements.txt

  3. 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)
  4. Run the main.py file.

About

python_telegram_bot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages