Skip to content

oevery/pusher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

082fa92 · Jul 12, 2024

History

22 Commits
Jul 11, 2024
Jul 11, 2024
Jul 12, 2024
Jul 8, 2024
Jul 11, 2024
Jul 11, 2024
Jul 12, 2024
Jul 8, 2024
Jul 12, 2024
Jul 11, 2024
Jul 11, 2024
Jul 12, 2024
Jul 11, 2024
Jul 11, 2024
Jul 12, 2024

Repository files navigation

pusher

A simple pusher. You can use this project to send message to multiple platforms with unify simple API.

Work in Progress!!!

Supported platforms

  • 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.