2.0.3 • Published 3 years ago

vamuved v2.0.3

Weekly downloads
1
License
MIT
Repository
github
Last release
3 years ago

Strict TypeScript Checked JavaScript Style Guide

VamUved

API library for VamUved, service for developers for delivering simple notifications about your program.

Installation

npm i vamuved

Usage

Get new channelId from Telegram bot that you want to deliver you notifications.

import vamuved from 'vamuved'

// ...

// second argument is optional
await vamuved.send('5fbc2c25a5efd72bf4f503a1', 'hello world!!!')

Error handling:

try {
  await vamuved.send('5fbc2c25a5efd72bf4f503a1')

  console.log('done')
} catch (e) {
  console.log(e) // Error: Invalid channel
}

Set hosthame for custom VamUved server:

import vamuved from 'vamuved'

vamuved.setHosthame('example.com')

await vamuved.send(...)
2.0.3

3 years ago

2.0.2

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago