<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: fresite team</title>
    <description>The latest articles on DEV Community by fresite team (@fresite).</description>
    <link>https://dev.to/fresite</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4256784%2Fc6484745-e62e-4c60-b690-05bf1546d387.png</url>
      <title>DEV Community: fresite team</title>
      <link>https://dev.to/fresite</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/fresite"/>
    <language>en</language>
    <item>
      <title>Connecting a website and a Telegram bot to amoCRM or Bitrix24</title>
      <dc:creator>fresite team</dc:creator>
      <pubDate>Sat, 21 Nov 2026 06:15:36 +0000</pubDate>
      <link>https://dev.to/fresite/connecting-a-website-and-a-telegram-bot-to-amocrm-or-bitrix24-56bb</link>
      <guid>https://dev.to/fresite/connecting-a-website-and-a-telegram-bot-to-amocrm-or-bitrix24-56bb</guid>
      <description>&lt;p&gt;Most small businesses already run a CRM (amoCRM or Bitrix24), while the website and the Telegram bot live separately and leads get copied by hand. Here is a practical way to connect them.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Decide what gets created
&lt;/h2&gt;

&lt;p&gt;A request from the site or the bot should become a lead or a deal in the CRM you already use. Decide up front: lead or deal, which contact fields, which pipeline stage.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. What to pass
&lt;/h2&gt;

&lt;p&gt;Usually: name, contact method, source (&lt;code&gt;site&lt;/code&gt; or &lt;code&gt;bot&lt;/code&gt;), and the request text. If the site has a quiz, calculator or cart, pass the chosen answers or the order contents as a comment or custom fields.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. How it works technically
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;The website form and the bot's handler both send a JSON payload to one small backend endpoint.&lt;/li&gt;
&lt;li&gt;The backend validates the data, adds the source tag and calls the CRM REST API (amoCRM API v4 or Bitrix24 &lt;code&gt;crm.lead.add&lt;/code&gt;) with a webhook or OAuth token.&lt;/li&gt;
&lt;li&gt;Store the CRM response id, so retries do not create duplicates (idempotency key = request id).&lt;/li&gt;
&lt;li&gt;If the CRM is unavailable, queue the request and retry; notify a manager in Telegram meanwhile.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Anna"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"contact"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"@anna_tg"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"source"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"bot"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"comment"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Needs an online booking site"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"request_id"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"b-10231"&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  4. Limits
&lt;/h2&gt;

&lt;p&gt;Capabilities depend on your CRM plan and settings. Complex scenarios (custom pipelines, two-way sync of all fields) are better discussed separately. The CRM subscription itself is paid by you.&lt;/p&gt;

&lt;h2&gt;
  
  
  About us
&lt;/h2&gt;

&lt;p&gt;We are the fresite team (fresite.ru): we build websites, Telegram bots, CRM integrations and other tools for small businesses in Russia. Development costs 0 RUB; only support is paid, from 6,900 RUB/month. We host projects on our own servers, so you don't need to buy hosting. Send a request: &lt;a href="https://fresite.ru/?utm_source=dev.to&amp;amp;utm_medium=post"&gt;https://fresite.ru/?utm_source=dev.to&amp;amp;utm_medium=post&lt;/a&gt; (free, no obligation).&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>automation</category>
      <category>api</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
