telegram-actions
v1.2.3
Published
[DEPRECATED] More info https://www.npmjs.com/package/@telegram-actions/core
Downloads
3
Maintainers
Readme
Telegram Actions
Control your Telegram bot with comands.
Install
npm install telegram-actions --save
Example
import { TelegramActions, IAction } from 'telegram-actions';
const token = process.env.TOKEN || '';
const bot = new TelegramActions(token, true);
bot.start();
More examples
Reference
Action: Action interface
TelegramActions
- constructor(token, defaultActions)
- start(TelegramActions)
- addActions(Action[])
- defaultActions: The default action is echo function. If you write echo .... the bot response with the same message.
Extra Actions
You can found configure Wiki.
Donation
If this project help you reduce time to develop, you can give me a cup of coffee :)
License
The MIT License (MIT)
Copyright © 2017 Silvelo