@oevery/pusher
v0.2.2
Published
simple pusher.
Downloads
11
Readme
pusher
A simple pusher. You can use this project to send message to multiple platforms with unify simple API.
Work in Progress!!!
Supported platforms
- [x] telegram
Installation
pnpm add @oevery/pusher
Usage
import { TelegramProvider } from '@oevery/pusher'
const telegram = await TelegramProvider.create()
telegram.send('this is a test message.')
Config
- You can use
pusher.config.{js|ts}
to define pusher options. - Use environment like
PUSHER_TELEGRAM_TOKEN
. - Add options when create.
High-priority parameters will override low-priority parameters.
Notice
You must use this project in backend!
But you can use zod schema
in browser to validate options input.