The API client for foxogram.js
Install with npm / yarn / pnpm:
npm install @foxogram/api
yarn add @foxogram/api
pnpm add @foxogram/api
import API from "@foxogram/api";
const api = new API(rest);
api.rest.token = TOKEN;
try {
await api.message.create(CHANNEL_ID, {
content: "floof by coof",
});
} catch (error) {
console.error(error);
}