telegram-actions
TypeScript icon, indicating that this package has built-in type declarations

1.2.3 • Public • Published

Telegram Actions

CircleCI Donate

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

Package Sidebar

Install

npm i telegram-actions

Weekly Downloads

0

Version

1.2.3

License

MIT

Last publish

Collaborators

  • arturo.silvelo