Skip to content
Zubik Dmitriy edited this page Oct 31, 2018 · 2 revisions

Prerequisites

  1. Generate SSL certificate for you host
  2. Add environment variables
  • BM_CAT_SSL_CERTIFICATE_PATH with cert path and BM_CAT_PRIVATE_KEY_PATH with private key path
  • PORT server will listen this port (5000 by default)
  • BM_CAT_HOST and BM_CAT_PORT (Telegram currently only supports four ports for webhooks: 443, 80, 88 and 8443) where telegram will send requests
  • BM_CAT_API_KEY - telegram api key
  • BM_YOUTUBE_API_KEY - Youtube api key
  1. run src/server.py

How to use

Chat

Start chat with your bot and send 'BM!' it responses with random video from YT

Inline

Inline feature has to be enabled. Type @[your_bot_name] BM! at any chat and have fun

Clone this wiki locally