@oevery/pusher
TypeScript icon, indicating that this package has built-in type declarations

0.2.2 • Public • Published

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

  1. You can use pusher.config.{js|ts} to define pusher options.
  2. Use environment like PUSHER_TELEGRAM_TOKEN.
  3. 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.

Readme

Keywords

Package Sidebar

Install

npm i @oevery/pusher

Weekly Downloads

0

Version

0.2.2

License

MIT

Unpacked Size

49 kB

Total Files

33

Last publish

Collaborators

  • oevery