teleflex
v2.1.0
Published
A flexible Telegraf helper library for creating dynamic help menus and module management
Downloads
33
Maintainers
Readme
Teleflex
A flexible Telegraf helper library for creating dynamic help menus and module management for Telegram bots.
Features
- Plug-and-play module system for Telegraf bots
- Dynamic help menu generation
- Easy command registration
- Simple configuration
Installation
Install using npm:
npm install teleflexBasic Usage
const { Teleflex } = require('teleflex');
const { Telegraf } = require('telegraf');
const bot = new Telegraf('BOT_TOKEN');
const teleflex = new Teleflex(bot, {
helpCommand: 'help',
modulesPath: './modules',
});
teleflex.loadModules(); // Auto-load modules from directory
bot.launch();Documentation
Full documentation is available here: Teleflex Docs
Contributing
- Fork the repo
- Create your feature branch
- Commit your changes
- Push to the branch
- Create a new Pull Request
License
This project is licensed under the MIT License.
