Package Exports
- tribute-tg
Readme
tribute-tg
Unofficial API client of Tribute - a service for monetization in Telegram.
Installation
npm i tribute-tgUsage
Authorization token can be obtained from a network request in the web version of Telegram while using the Tribute mini-app. See
Authorizationheader (in the request with tribute.tg host) and copy value afterTgAuthprefix.
import { Tribute } from 'tribute-tg';
const TOKEN = 'TG_AUTH_TOKEN'; // Use your token here
const tribute = new Tribute(TOKEN);
async function main() {
const dashboard = await tribute.getDashboard();
// ...
}