Skip to content

tgsnake/skema

Repository files navigation

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. 🐍

Layer 221

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/skema

Usage 🛠️

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

About

Usable Telegram MTProto Schema for Typescript

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •