Development of a Telegram Bot.
Hello!
There is a bot written in PHP that sends data to the bot as it arrives.
A new bot needs to be created in any language, the main thing is quality.
An example of such a bot is - @inflow_chatbot
It needs to accept payments, the service will be similar to wayforpay, this will be the service - https://fondy.ua/
A referral system is not needed.
Then combine the two bots into one. There will be an API in PHP for data retrieval.
Here is what ChatGPT recommends for merging bots.
Yes, it is possible to combine the old PHP bot with the new bot written in Python in several ways:
1. Using a common Webhook
The Python bot can be set up to receive all incoming requests from Telegram and then forward or process them together with the PHP bot.
How to implement this:
• The new Python bot processes the Webhook, but instead of fully processing all messages, it can pass certain commands to the PHP bot.
• The Python bot can act as a proxy, forwarding data to the PHP bot and back.
2. Using API between bots
The PHP bot can continue to operate as an API server, while the Python bot will call it when needed.
How to implement this:
• The PHP bot provides an API (for example, via REST API), which the Python bot calls to process commands or retrieve necessary data.
• The Python bot is responsible for the visual design but interacts with the PHP bot through HTTP requests.
3. Using one token for both bots (separating logic)
Telegram allows using one token for multiple bots, but it is important that they correctly separate tasks.
How to implement this:
• One bot (Python) acts as the main one and filters commands, while the PHP bot processes only certain requests.
• It is possible to have the Python bot pass necessary commands to the PHP bot via cURL or requests.
4. Using WebSockets or Redis for data exchange
• The Python bot can send commands to the PHP bot via Redis Pub/Sub or WebSockets.
• The PHP bot remains operational, but its logic is invoked through Python.
Which method is better?
• If you need to completely replace the PHP bot: It is better to rewrite it in Python and just retain the logic.
• If you want the PHP bot to continue working in parallel: You can use API calls or a common Webhook.
• If you want to migrate gradually: The Python bot can first take over the visual aspect and then gradually adopt the functionality.
Depending on the desired outcome, one of the methods can be chosen or they can be combined.
-
227 Hello, I have extensive experience in creating bots, Python Telegram bots are what I love to do, please give me the opportunity to show myself!!!
-
792 9 1 Good day. There are already successfully completed cases that are similar to your situation. We implement through a bot on aiogram 3.
I will be glad to cooperate!
-
191 1 0 Hello! I am interested in your vacancy)
I am ready to start working right today. I will do everything efficiently and quickly.
Thank you, I will be happy to collaborate)
-
290 3 1 Good evening, I can start working, we can discuss everything in messages) I have experience in bot development, please check my portfolio )
-
757 8 0 Good day. I have been developing Telegram bots and backend on Python for several years. It might be better and easier to rewrite the PHP bot in Python or create a separate API; we need to look at the PHP bot's code and its functionality. I am ready to collaborate, feel free to write.
-
10123 117 0 Hello.
I am developing bots for Telegram using NodeJS. I am ready to take on the project. Write to me, and we will discuss.
-
2643 427 9 1 I created bots in PHP, but to combine them, either rewrite that one for PHP or rewrite the bot itself in Python.
-
Могу сделать за 2-3 часа
2500грн -
Current freelance projects in the category Bot Development
"Automation / Chatbots" "CRM Setup"
113 USD
Looking for a technical assistant/integrator to set up automation in a beauty salon. Setting up a chatbot for the beauty salon (Integration of Instagram + Altegio/YCLIENTS + Wahelp) with training. Current setup: CRM system: Altegio (YCLIENTS). Main traffic channel: Instagram… AI & Machine Learning, Bot Development ∙ 2 hours 28 minutes back ∙ 11 proposals |
Creation of a Telegram bot for an auto service.A Telegram bot needs to be created for the auto service AutoPerformance. Goal The bot is needed so that mechanics can perform a basic vehicle diagnosis using a checklist, add photos/videos, write final recommendations, and the system saves the results and calculates payment… Bot Development ∙ 9 hours 38 minutes back ∙ 71 proposals |
Create a bot in Telegram (seller's cabinet)
16 USD
Hello everyone I need a user personal account in the format of a bot in Telegram After launching and completing the survey, a personal account is created for the user (which allows them to access the system for further buttons) so that each registered user is displayed in a… Python, Bot Development ∙ 1 day 1 hour back ∙ 91 proposals |
Development of a TikTok farm (content factory)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 ∙ 1 day 22 hours back ∙ 18 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 ∙ 1 day 23 hours back ∙ 40 proposals |