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
const { AoiClient, LoadCommands } = require('aoi.js');
const TAPI = require('aoi.t-api');
const client = new AoiClient({...});
client.onMessage()
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