Skip to content

Easily replicate consistent telegram bot structure and functionality with this Telegram bot template.

License

Notifications You must be signed in to change notification settings

PathX-Projects/PathX-Telegram-Bot-Template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telegram Logo

Telegram Bot Template

Easily replicate consistent telegram bot structure and functionality with this Telegram bot template.

Features Include:

Restricted Access to the Bot Using a Whitelist/Blacklist
MySQL Database Connection for User Data
Logger Handles Console and File Logging


Table of Contents

  1. Setup
  2. Bot Commands

Setup

  1. Ensure that you have Python 3.9+ install on your machine. If not, you can install it here.

  2. Add additional functionality to the bot by customizing the template.

  3. Modify the database_schema file to reflect your desired user data/configuration.

  4. Add your new commands to bot_commands.txt.

  5. Set config variables in tg_config.py file and db_config.py file

  6. Install pip packages

    pip install -r requirements.txt
  7. Run the Telegram bot from the entrypoint

    python main.py

(back to top)

Bot Commands:

(back to top)

About

Easily replicate consistent telegram bot structure and functionality with this Telegram bot template.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages