1.2.3 • Published 6 years ago

telegram-actions v1.2.3

Weekly downloads
14
License
MIT
Repository
github
Last release
6 years ago

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

1.2.3

6 years ago

1.2.2

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.0

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago