@tgsnake/skema
v1.7.0
Published
A compiled Telegram TL Schema and Telegram errors Schema into usable JavaScript classes with full TypeScript support
Downloads
28
Readme
Skema 🚀
Skema is a compiled Telegram TL Schema and Telegram errors Schema into usable JavaScript classes with full TypeScript support.
This project was originally based on the source code from @tgsnake/core. 🐍
Features ✨
- Converts Telegram TL Schema to JavaScript/TypeScript classes
- Handles Telegram error types
- Easy integration into your TypeScript or JavaScript projects
Installation 📦
npm install @tgsnake/skemaUsage 🛠️
import { Raw } from '@tgsnake/skema';
// Example usage
const sendMessageApi = new Raw.messages.SendMessage({
// constructor parameter here
});Why Skema? 🤔
- Simplifies working with Telegram's complex TL schema
- Type-safe: full TypeScript support
- Reduces boilerplate and manual schema handling
