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.
Click to show internal directories.
Click to hide internal directories.