Astro
For Astro projects, the chat script goes in your shared layout component (e.g. src/layouts/Layout.astro) so the launcher shows on every page.
Install#
No package install needed. Copy the snippet from the Connect tab in your dashboard and replace YOUR_PROJECT_ID with your project's ID.
Add the script#
In your layout's <head> or before the closing </body>:
The is:inline directive prevents Astro from processing the script as a module — important because the chat loader expects a global window property.
Verify#
Run npm run dev and the chat bubble appears on every page. Send a test message and confirm it lands in your connected Telegram. Make sure chat is enabled and your Telegram is connected in the dashboard first.