Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 1.64 KB

README.md

File metadata and controls

37 lines (26 loc) · 1.64 KB

logo Telegram bot GitHub Repo stars

GitHub tag (latest by date) GitHub

Setup guide is available in this article (RU)

  • This bot is meant to be hosted on Heroku
  • Telegram webhook is connected with flask

Environment variables

Main bot

  • BOT_TOKEN - bot token for main bot
  • WEBHOOK_TOKEN - large random string to protect webhook
  • ADMIN_PASSWORD - large random string to access server

Server settings

  • HOST - host to set as webhook, e.g example.herokuapp.com
  • IS_PRODUCTION - flag to run flask server or to use bot polling instead

Tg-logger, [repo]

  • LOG_BOT_TOKEN - bot token for logging, leave empty to disable
  • ADMIN_ID - user_id to send logs to

Webserver pages

  • /?password={ADMIN_PASSWORD} - status page
  • /set_webhook?password={ADMIN_PASSWORD} - setup webhook
  • /remove_webhook?password={ADMIN_PASSWORD} - remove webhook

Demo

Bot

main bot scr

Tg-logger

logger scr