Socket
Socket
Sign inDemoInstall

aoi.t-api

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aoi.t-api

An aoi.js plugins package to interact with the T-API easily.


Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

aoi.t-api

This package is the easiest way to interact with the T-API using AOI.js

Features

  • 🚀 Easy to use!
  • 🎓 From a professional API!

Install

npm i aoi.t-api

All endpoints are from: T-API

Setup

// Starting AOI classes
const { AoiClient, LoadCommands } = require('aoi.js');
// Starting TAPI class
const TAPI = require('aoi.t-api');
// AOI Client
const client = new AoiClient({...});
// Client callbacks
client.onMessage()
// Connecting T-API with AOI.js
const api = new TAPI(client);
api.connect();

Usages

Embed images

$imageTAPI[endpoint name;params]
Params must be in JSON

Supreme command
module.exports = {
    name: 'supreme',
    code: `
        $imageTAPI[supreme;{ "text": "Best package!" }]
    `
}

Getting a JSON body

$jsonTAPI[endpoint name;params]
Params must be in JSON

module.exports = {
    name: 'owoify',
    code: `
        $sendMessage[$getObjectProperty[data]]
        $createObject[$jsonTAPI[owoify;{ "text": "hamburguesa" }]]
    `
}

Made with 💖 by a Moonlight Group member.

Credits

Mid#1044 (for some code "inspiration")
Cyberghxst#2683 (Package developer)

👾 Known issues

Indexing is not working in $apiImage (returns undefined)
Some endpoints are not working.

uwuwis

Keywords

FAQs

Package last updated on 01 Nov 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc