API

Статьи

Public JS API
This document describes the public JavaScript API available to clients for controlling the behavior of the Teletype widget. Custom JavaScript Events teletype.* To track information, clients have access to a number of…
Public API
You can use this documentation to familiarize yourself with the API methods.  The description is provided in the Swagger 3.0 format. To generate base code for working with the API in your…
How to Set Up Metric Events in an Online Chat
Events in the Widget Yandex Metrica Integration Code (function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a|| []).push(arguments)}; m[i].l=1*new Date();k=e.createElement(t),a=e.getElementsByTagName(t) [0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)}) (window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym") ym(XXXXXX, "init", { id:XXXXXX, clickmap:true, trackLinks:true, accurateTrackBounce:true, ut:"noindex" }); Google Analytics Integration Code <script…
How to Change the Position of the Online Chat
To change the position of the online chat, you need to override the bottom parameter in these styles by specifying the total offset value, where x is the number of pixels to…
Incorrect Placement of the Online Chat on the Website
If the online chat on your website is not displaying correctly (in the lower left or right corner), it means your site’s styles are overriding the styles of the online chat. To…
How to Hide or Display the Real-Time Online Chat Button
These methods allow you to hide and show the online chat button in real time: hide the online chat button document.getElementById('teletype-widget-component-button').style.visibility = 'hidden' 2. show the online chat button document.getElementById('teletype-widget-component-button').style.visibility = 'visible'
Method for Loading an Online Chat
Method for loading the online chat: document.addEventListener("teletype.ready", function(){console.log("Teletype ready")})
n8n Node Public API
Teletype Public API → n8n Community Nodes A set of nodes for n8n that connects the Public API from the teletype.app service to work with messengers and social networks such as WhatsApp,…