telegraf-start-parts
Command /start parameters parser middleware for Telegraf
Last updated 2 years ago by tiagodanin .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install telegraf-start-parts 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.0                                ...           latest (2 years ago)

1 Versions

  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 2
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (2)

Copyright 2014 - 2017 © taobao.org |