Skip to main content

Runtime for TL (de-)serialization. It only contains binary reader and writer implementations

Works with
This package works with Bun
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Browsers
JSR Score
100%
Published
3 weeks ago (0.12.0)

@mtcute/tl-runtime

📖 API Reference

This package contains runtime for TL (de-)serialization. It only contains binary reader and writer implementations, as well as some Uint8Array utilities, and is used by @mtcute/core.

@mtcute/tl-utils on the other hand has utilities like codegen and schema manipulation, which is only needed at runtime if you are patching the schema (which is a rare case anyways).

Features

  • Supports all TL features used by the public schema
  • Uint8Array utilities like hexDecode
  • Supports browsers out of the box
Built and signed on
GitHub Actions
View transparency log

Add Package

deno add @mtcute/tl-runtime

Import symbol

import * as mod from "@mtcute/tl-runtime";

Add Package

npx jsr add @mtcute/tl-runtime

Import symbol

import * as mod from "@mtcute/tl-runtime";

Add Package

yarn dlx jsr add @mtcute/tl-runtime

Import symbol

import * as mod from "@mtcute/tl-runtime";

Add Package

pnpm dlx jsr add @mtcute/tl-runtime

Import symbol

import * as mod from "@mtcute/tl-runtime";

Add Package

bunx jsr add @mtcute/tl-runtime

Import symbol

import * as mod from "@mtcute/tl-runtime";