Skip to content

Exorsky/telebot_template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Features

  • Easy to use structure, all files are separated in folders
  • Simple antispam function
  • Handling admin/user commands
  • Handling local sqlite3 database

Project structure

Directory path For what its used
src/callbacks Bot callback functions
src/cmds/user Uuer only command functions
src/cmds/admin Admin only command functions
src/filters Custom filters. For example, admin check
src/handlers Register command and callback handlers.
src/logger Logger setup file
src/markups Custom markups which could be replied in messages
src/middlewares Custom middlewares, for example, antispam
src/utils/emojis Emojis used for text decoration
src/utis/texts Texts used for bot messages or markup

Setup

git clone https://github.com/Exorsky/telebot_template.git
pip install -r requirements.txt
Add your bot token in config.yaml file

How to add admin previleges

Add your int(user_id) in config.yaml Admins list

About

Template for creation of new bots for telegram via telebot library

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages