Command /start parameters parser middleware for Telegraf by Tiago Danin.
Command /start parameters parser middleware for Telegraf
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
const telegrafStart = require('telegraf-start-parts')
bot.use((ctx, next) => telegrafStart(ctx, next))
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
None
None
MIT
JavaScript
2