MCPcopy Index your code
hub / github.com/cyan-2048/solid-telekram

github.com/cyan-2048/solid-telekram @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
8,935 symbols 23,708 edges 802 files 1,519 documented · 17%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Telegram4KaiOS

Unofficial Telegram client for KaiOS.

Made with

  • mtcute (amazing mtproto library)
  • solid.js
  • 👀🙌🤖

Screenshots

Screenshot 1 Screenshot 2 Screenshot 3 Screenshot 4 Screenshot 5 Screenshot 6 Screenshot 7 Screenshot 8 Screenshot 9 Screenshot 10 Screenshot 11 Screenshot 12 Screenshot 13 Screenshot 14 Screenshot 15 Screenshot 16 Screenshot 17 Screenshot 18 Screenshot 19 Screenshot 20 Screenshot 21 Screenshot 22 Screenshot 23 Screenshot 24 Screenshot 25 Screenshot 26 Screenshot 27 Screenshot 28 Screenshot 29 Screenshot 30 Screenshot 31 Screenshot 32 Screenshot 33 Screenshot 34 Screenshot 35

Developing

Prerequisites

Install the latest LTS version of Node.js and Bun:

  • Node.js (Latest LTS)
  • Bun: https://bun.sh/

Environment Setup

Create a .env.local file and copy the contents of .env into it.

Replace the following values with your own Telegram API credentials:

APP_ID=your_app_id
APP_HASH=your_app_hash

And then install dependencies

bun install --frozen-lockfile

Development

[!NOTE]
Bun is required. npm, pnpm, and yarn are not supported.

KaiOS 2.5

bun run dev

KaiOS 3.0

bun run dev:v3

KaiOS 4.0

bun run dev:v4

Building for Production

KaiOS 2.5

bun run build

KaiOS 3.0

bun run build:v3

KaiOS 4.0

bun run build:v4

CloudPhone

bun run build:cloudphhone

[!NOTE]
CloudPhone support is highly experimental and only works on QVGA devices.

https://telekram.netlify.app/#cloudphone=1&api_id=<INSERT YOUR APP ID HERE>&api_hash=<INSERT YOUR APP HASH HERE>

Deployment

After the build completes, the generated files will be available in their respective directories:

  • KaiOS 2.5: dist
  • KaiOS 3.0: dist-v3
  • KaiOS 4.0: dist-v4
  • CloudPhone: dist-v3

GIVE ME MONEY

ko-fi

mtcute developer: https://tei.su/donate

Discord Server

for updates and to join the app testers.

Discord server

testers will be able to install the app directly from the KaiStore.

Extension points exported contracts — how you extend this code

TelegramTransport (Interface)
(no doc) [7 implementers]
@mtcute/core/network/transports/abstract.ts
WebCryptoProviderOptions (Interface)
(no doc)
@mtcute/web/crypto.ts
MoveOrCopyOptions (Interface)
(no doc)
src/global.d.ts
ToastOptions (Interface)
(no doc)
src/utils.ts
HtmlUnparseOptions (Interface)
(no doc)
src/lib/unparse.ts
EmojiMatch (Interface)
(no doc)
src/views/components/Markdown.tsx
WorkerInitParams (Interface)
(no doc)
src/workers/telegram.ts
CloudphoneFeatures (Interface)
(no doc)
src/ui/CloudphoneFeatures.ts

Core symbols most depended-on inside this repo

h
called by 4527
@mtcute/core/tl/binary/writer.js
string
called by 2036
@mtcute/core/network/mtproxy/_fake-tls.ts
_isAny
called by 600
@mtcute/core/tl/inner-tl.js
call
called by 347
@mtcute/core/highlevel/client.types.ts
get
called by 333
src/global.d.ts
set
called by 320
src/lib/spatial_navigation.d.ts
o
called by 316
src/lib/webp/whatsapp_webp.js
A
called by 283
src/lib/webp/whatsapp_webp.js

Shape

Function 5,632
Method 2,337
Class 515
Interface 439
Enum 12

Languages

TypeScript100%

Modules by API surface

src/workers/rlottie/asmjs/rlottie-wasm.asm.js3,508 symbols
@mtcute/web/kaios/asmjs/mtcute.asm.js356 symbols
@mtcute/core/highlevel/client.ts319 symbols
src/lib/webp/whatsapp_webp.js200 symbols
src/workers/rlottie/wasm/rlottie-wasm.js184 symbols
@mtcute/core/tl/compat/index.d.ts101 symbols
@mtcute/core/highlevel/types/messages/message-action.ts71 symbols
@mtcute/core/highlevel/types/peers/user.ts61 symbols
@mtcute/core/highlevel/types/premium/star-gift-unique.ts58 symbols
@mtcute/core/highlevel/types/peers/full-chat.ts57 symbols
@mtcute/core/highlevel/types/messages/message.ts57 symbols
@mtcute/core/highlevel/types/peers/chat.ts55 symbols

For agents

$ claude mcp add solid-telekram \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact