Skip to content

TiagoDanin/Telegraf-Start-Parts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telegraf-Start-Parts Build Status

Command /start parameters parser middleware for Telegraf

Installation

This is a Node.js module available through the npm registry. It can be installed using the npm command line tools.

npm install telegraf-start-parts --save

Usage

Code

const telegrafStart = require('telegraf-start-parts')
bot.use((ctx, next) => telegrafStart(ctx, next))

Example

Input: /start help or https://telegram.me/youbot?start=help

Output: /help

Input: /start help-bot or https://telegram.me/youbot?start=help-bot

Output: /help bot

Dependencies

None

Dev Dependencies

None

License

MIT

About

Command /start parameters parser middleware for Telegraf

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published