aitu
TypeScript icon, indicating that this package has built-in type declarations

1.0.0-beta.1 • Public • Published

aitu npm GitHub Workflow Status Aitu chat

A module for Aitu.io's service API, heavily inspired by negezor/vk-io and nitreojs/puregram.

Documentation (RU)

Installation

Yarn

Recommended

yarn add aitu

NPM

npm i aitu

Example usage

const { Aitu } = require('aitu')
 
const aitu = new Aitu({
  // Token received from @MasterService
  token: ''
})
 
aitu.updates.on('Message', async context => {
  const { name } = await aitu.api.getMe()
 
  context.send(`Hello! My name is ${name}`)
})
 
aitu.updates.startPolling()

More examples

Readme

Keywords

Package Sidebar

Install

npm i aitu

Weekly Downloads

3

Version

1.0.0-beta.1

License

MIT

Unpacked Size

145 kB

Total Files

210

Last publish

Collaborators

  • vitalyavolyn