Skip to content

Alex-Thunder-315/telegram-bot-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published