Skip to content

fix(telegram): restore user Links and send connection URL with QR - #161

Merged
SamNet-dev merged 2 commits into
SamNet-dev:mainfrom
rmtshnik:codex/fix-user-links
Oct 30, 2026
Merged

SamNet-dev merged 2 commits into
SamNet-dev:mainfrom
rmtshnik:codex/fix-user-links

Conversation

@rmtshnik

@rmtshnik rmtshnik commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Users → user → Link currently returns “This menu is out of date — send /menu” even from a freshly opened menu. The button emits u:k:<label>, but TG_CB_CAPS has no u:k entry, so the dispatcher rejects it before sending anything. Adding u:k=admin was verified on a live server and restored QR delivery.

This PR also includes the complete connection URL behind a compact 🔗 Connect link in the QR caption, so administrators can tap or copy the link directly from the same message. FakeTLS keeps its full ee secret and domain suffix. Only the compact link caption opts into Markdown; the server label is escaped, and other photo captions retain their plain-text behavior.

Photo delivery now checks the Bot API ok result instead of treating every successful curl exit as delivery. If QR generation or upload fails, the bot tries a plain connection link; if that also fails, the callback shows an error rather than claiming success.

Validation: 201 checks passed across the callback dispatcher, QR/limits, and per-secret management suites, plus Bash syntax and git diff checks. The new tests exercise u:k:alice through the actual authorization dispatcher, confirm unauthorized callers receive no link, verify the full URL in a successful photo caption, and cover rejected photo/text API responses. Tests ran in Cygwin with LF-normalized copies; the QR/limits suite required an environment-only xargs -s 4096 wrapper for the local Cygwin command-size limit. Live-server confirmation of the combined QR caption is pending.

@SamNet-dev
SamNet-dev merged commit aea486f into SamNet-dev:main Oct 30, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants