// Telegram shim for portal builds. Portals forbid links out of the iframe, and
// messenger deep links in a bundle are dead weight a reviewer has to explain to
// themselves, so scripts/build-portal.js swaps telegram.js for this. The export
// list is pinned to the real module's by test/portal-build.test.js.

export const inTelegram = false;
export const webApp = null;
export const initData = '';

export function startRoom() { return null; }
export function initTelegram() {}
export function requestFullscreen() {}
export function exitFullscreen() {}
export function isFullscreen() { return false; }
export function setClosingConfirmation() {}
export function setBackAction() {}
export function initBackButton() {}
export function ready() {}
export function openInvoice() { return Promise.resolve('cancelled'); }
export function shareRoom() {}
export function haptic() {}
export function notifyHaptic() {}
export function selectionHaptic() {}
export function onEvent() {}
