feat(telegram): native dialogs (experimental, stacked on #136) #137
Reference in New Issue
Block a user
Delete Branch "feature/telegram-native-dialogs"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Experimental step D (native Telegram dialogs), split out per the owner's call: merge alongside #136 if it feels right on device, otherwise drop it (close this PR) and ship #136 alone.
Stacked on #136 (
feature/telegram-embedding): this branch is cut off it, so the diff below includes #136's A/B/E/F/G + docs. The only commit unique to this PR is the last one —feat(telegram): native dialogs for confirms and deep-link notices. After #136 merges into development, this diff collapses to just D.What D does, inside the Mini App only (the in-app Modal stays the fallback outside Telegram / on older clients / offline):
showConfirm.showPopupwhose button opens the bot chat.The deep-link info modals (stale invite, welcome-on-redeem) captured insideTelegram() && telegramDialogsAvailable() in a const at component init, but they mount in App before bootstrap loads the SDK, so the value was always false and they fell back to the in-app Modal even inside Telegram. Evaluate it at fire time (in the effect and the {#if} guard), as the destructive confirms already do at click time.