telseal

command
v0.45.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 15, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

telseal prints the linker flags that embed the bundled Telegram app credentials, read from TEL_API_ID and TEL_API_HASH (CI secrets): the sealed blob and the fresh key it opens with, each into its own variable. Release builds append the output to -ldflags:

TEL_LDFLAG=$(go run ./cmd/telseal)
go build -ldflags="... ${TEL_LDFLAG}" ./cmd/client

With both unset (or empty, as CI passes a missing secret) it prints nothing and exits 0: the build goes on without a default and the app asks users for their own pair. Anything half-set or malformed fails the build instead -- shipping a pair Telegram will refuse, or silently none, is worse.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL