Skip to content

A simple javascript library that helps you to route messages from telegram bot to your application.

License

Notifications You must be signed in to change notification settings

TBXark/telegram-router

Repository files navigation

telegram-router

telegram-router is a simple javascript library that helps you to route messages from telegram bot to your application.

Installation

npm install telegram-router

Usage

import { TelegramRouter } from 'telegram-router'

const bot = new TelegramRouter<Response>();

bot.handleWith('/admin', UpdateType.Message, MatchType.Exact, async (update: Telegram.Update) => {
    // handle message
});

bot.fetch(update);

Example

License

telegram-router is released under the MIT license. See LICENSE for details.

About

A simple javascript library that helps you to route messages from telegram bot to your application.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published