Deployment of a Telegram bot in Python with SalesDrive integration
Technical Task: Deploying a Telegram Bot on Python with SalesDrive Integration
Context:
A Python bot has been developed (using the python-telegram-bot and google-genai libraries). The bot generates images through the Gemini API and collects data for merchandise orders (product, size, contact information, address). SalesDrive CRM is used.
Problem:
Currently, the bot operates in Polling mode, which conflicts with the chat functionality of SalesDrive (SalesDrive also uses Webhook to display message history in the CRM). It is necessary to ensure the simultaneous operation of the bot's logic and the preservation of the entire chat history in SalesDrive.
Required Result:
Deployment on Hostiq: Deploy the bot on my hosting (Shared or VPS via SSH). Set up a virtual environment (venv) and auto-start the process (for example, via systemd or Gunicorn).
Switching to Webhook: Transition the bot from Polling to Webhook. Set up SSL/HTTPS and Reverse Proxy (Nginx/Apache) so that Telegram can send requests to the server.
Synchronization with SalesDrive: Implement the "proxy" logic: each incoming message from the user should not only be processed by the bot's logic but also instantly duplicated (forwarded) to the SalesDrive Webhook. This is necessary for the manager to see the entire dialogue history directly in the SalesDrive CRM interface.
Preservation of the bot's logic:
Image generation (Gemini/Imagen).
Step-by-step data collection: Product type -> Size -> Full name/Phone -> Address.
Final report: Sending complete order data (along with the generated photo) in private messages to the manager in Telegram.
Technical Data (to be provided after discussion):
Bot code (Python).
Telegram Bot Token & Gemini API Key.
SalesDrive Webhook URL.
Access to Hostiq (SSH/Control Panel).
Manager ID for reports.
Requirements for the performer:
Experience with python-telegram-bot, Webhooks, Gunicorn/Nginx.
Understanding how chats work in SalesDrive through API/Webhooks.
Result: A fully functional bot on the server that does not "interrupt" the chat in the CRM.
The main issue is the conflict of Webhooks, and you need to set up message forwarding to SalesDrive while the bot performs its tasks.
Client's review of cooperation with Dmytro Romanchuk
Deployment of a Telegram bot in Python with SalesDrive integrationThe project was completed according to the technical specifications.
Freelancer's review of cooperation with Mikola Krivsha
Deployment of a Telegram bot in Python with SalesDrive integrationEverything went well, except for the payment. The task was for 2 days, everything was done on time, but the payment was delayed.
-
159 5 1 1 Hello! I have reviewed the technical task — the task is clear.
The key issue here is not actually the logic of the Telegram bot itself, but the conflict of Webhooks between Telegram and SalesDrive. This is resolved through the correct construction of proxy logic: the bot processes messages and simultaneously duplicates them in the SalesDrive Webhook so that the full history of the dialogue is stored in the CRM.
I can implement the following:
• deploy your Python bot on Hostiq (setting up venv and auto-start via systemd or Gunicorn);
• switch the bot from Polling to Webhook with correct HTTPS configuration and reverse proxy (Nginx);
• implement proxy logic: each incoming message is processed by the bot and simultaneously sent to the SalesDrive Webhook;
• preserve all current business logic of the bot: image generation via Gemini, step-by-step collection of order data, and final report to the manager in Telegram.
…
The result — a stable production bot that does not interrupt the chat in SalesDrive and correctly synchronizes all correspondence with clients.
Deadline: 4 working days
Cost: $800 (fixed)
Clarifying questions before starting:
1. Is Hostiq hosting shared or VPS? Is there root access?
2. Is the domain with SSL already set up, or does HTTPS need to be established (Let’s Encrypt)?
3. SalesDrive Webhook:
• does it accept all messages or only messages from the user?
• is the transmission of additional fields (author, timestamp, attachments) needed?
4. Should generated images be sent to SalesDrive, or is text and order status sufficient?
5. What version of python-telegram-bot is being used (v13 or v20+)? This is important for the correct implementation of Webhook.
-
302 I can perform a full deployment and refinement of a Telegram bot in Python with a transition to Webhook and proper integration with SalesDrive, so that the bot and CRM work simultaneously without conflicts.
-
1080 6 0 I understood the problem — a classic Webhook conflict between the bot and the CRM. I have done something similar for two projects, I know how to solve it.
The essence of the solution:
We will convert your bot to Webhook and deploy it on Hostiq.
We will create a "smart proxy" — each message goes through two paths simultaneously:
→ Your bot processes (generation, data collection)
→ SalesDrive receives a copy for history in the CRM
All bot logic remains: Gemini generation, order funnel, report to the manager
We configure Nginx + SSL so that Telegram correctly sends requests
Technical implementation:
… Flask/FastAPI receives Webhook from Telegram
Asynchronously forwards data to SalesDrive Webhook (requests.post)
The bot processes its logic in parallel
Systemd for auto-start and stability
Clarifying questions:
Is there documentation on Webhooks in the SalesDrive API? I need the data format they accept.
Is there already a domain with SSL or does it need to be configured?
Should the bot's responses be forwarded to SalesDrive as well, or only messages from the user?
I am also ready to do it very quickly in 2-3 days, but the price is already 3999 due to the holidays.
-
409 1 0 I have 10 years of experience in Python development and integration, familiar with all the described technologies. Does the Telegram bot itself support webhooks, or does it need to be modified?
-
2157 14 0 1 Hello. I am well aware of this problem: the Telegram API allows only one Webhook to be set, so when connecting the bot, the CRM disconnects (or vice versa). I will implement a "Gateway" architecture that will resolve the conflict once and for all. Technical solution: Main Webhook: Accepts your Python bot on the server (Hostiq). Relay (Middleware): I will add an asynchronous function to the bot's code that instantly duplicates the incoming JSON packet to the Webhook URL SalesDrive. This will ensure the appearance of dialogues in the CRM without delays. Server side: I will configure Nginx as a Reverse Proxy to handle HTTPS requests (Telegram's requirement). I will wrap the bot in Gunicorn and Systemd (for auto-start on crash/reboot). I will install a free SSL from Let's Encrypt. Experience: I work with the python-telegram-bot library and asynchronicity (asyncio/aiohttp), so forwarding data to SalesDrive will not slow down the generation of images through Gemini. I am ready to start setting up the server and editing the code. I can accept access to SalesDrive and Hostiq in a safe.
-
1567 5 0 Good day!
I can deploy your Telegram bot on Hostiq and implement integration with SalesDrive.
I have experience working with python-telegram-bot, Webhooks, Gunicorn, Nginx, and integrations through API/Webhook, so I will ensure stable operation without conflicts in the CRM.
-
211 1 0 Good day!
I have experience in deploying Telegram bots on Python using python-telegram-bot, setting up Webhooks, Gunicorn/Nginx, as well as integrating with CRM via API/Webhooks.
I can convert your bot from Polling to Webhook, set up SSL/HTTPS, Reverse Proxy, and auto-start on the Hostiq server.
I will implement the logic for forwarding all incoming messages to SalesDrive while maintaining the full functionality of the bot: generating images via the Gemini API, step-by-step collection of order data, and sending the final report to the manager.
Price for the project: 2000-4000 UAH
Estimated completion time: 2–4 days.
I am ready to start working immediately and ensure a fully functional bot on your server.
-
1382 8 0 Good day, I have experience working with Python as well as Telegram bots, I can complete everything quickly and efficiently, I am ready to start now, write a few details and we will discuss.
Current freelance projects in the category Bot Development
Development of a TikTok farm (content factory)
23 USD
It is necessary to develop a system for centralized management of multiple TikTok accounts with automatic content publishing, using individual proxies and simulating natural account activity. Functional Requirements1. Account Management Adding and removing TikTok accounts.… Python, Bot Development ∙ 9 hours 18 minutes back ∙ 11 proposals |
Instagram chatbotIt is necessary to set up a chat bot on Instagram that will address new subscribers by name. A possible option for collaboration with setup in Telegram later. Bot Development ∙ 10 hours 15 minutes back ∙ 28 proposals |
I am looking for a developer of AI agents and automation for business.
1000 USD
We are looking for agents for: — Sales and lead qualification — Marketing and content — Customer support — Analytics and reporting — Internal processes (HR, knowledge base) — Specialized niches (real estate, medicine, legal services) If you have experience or ready solutions —… AI & Machine Learning, Bot Development ∙ 16 hours 11 minutes back ∙ 34 proposals |
AI agent in Telegram for online store
451 USD
Task: creating an AI agent in Telegram for live communication with customers and processing orders in the online store on OpenCart. It is also necessary to implement customer notifications regarding order statuses, store operating hours, working conditions, delivery times, and… AI & Machine Learning, Bot Development ∙ 1 day 5 hours back ∙ 60 proposals |
Link UA Telegram botA Telegram bot needs to be developed that connects clients and performers of physical labor (movers, cleaning, repairs, laborers) across cities in Ukraine. Functionality: Two roles — client and performer. The client creates a request, selects a category, specifies the address… Bot Development ∙ 1 day 8 hours back ∙ 64 proposals |