mtcute/packages/mtproxy
2023-11-12 16:36:12 +00:00
..
fake-tls.ts chore(core): moved random to crypto provider, added tests for functions relying on rng 2023-11-12 00:36:00 +03:00
index.ts test: moved to vitest from mocha/chai 2023-11-09 00:20:43 +03:00
package.json v0.1.1 2023-11-12 16:36:12 +00:00
README.md docs: updated packages readmes 2023-11-01 14:05:45 +03:00
tsconfig.json ESM + end-to-end tests (#11) 2023-10-16 19:23:53 +03:00
typedoc.cjs docs: updated typedoc, added ci, fixed some docs 2023-10-27 14:25:21 +03:00

@mtcute/mtproxy

📖 API Reference

MTProto proxy (MTProxy) transport for mtcute.

Supports all kinds of MTProto proxies, including obfuscated and fake TLS.

Usage

import { MtProxyTcpTransport } from '@mtcute/mtproxy'

const tg = new TelegramClient({
    // ...
    transport: () => new MtProxyTcpTransport({
        host: 'localhost',
        port: 443,
        secret: 'secret'
    })
})