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.
-
9927 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.
-
2593 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
Set up an AI bot in ManyChat for Instagram and Facebook MessengerSet up ManyChat Pro + OpenAI API (model gpt-4o-mini, but you can suggest something niche). Without Make/Zapier, if it can be implemented with ManyChat's internal tools, or with them if you justify the need.Bot operation logic:Triggered by any incoming message from a new client… AI & Machine Learning, Bot Development ∙ 16 hours 48 minutes back ∙ 23 proposals |
Telegram Bot + Send PulseI am looking for a freelancer who can help set up a Telegram bot for a simple mini course. Please send your portfolio along with the price. Thank you Bot Development ∙ 18 hours 51 minutes back ∙ 61 proposals |
Payment bot
223 USD
Connecting payment for a closed club in Telegram. It is necessary to set up a payment format where the user pays with a card from any country, and the channel author receives converted $ into their wallet. Additionally, reminders, automatic deductions, and automatic addition and… Bot Development ∙ 23 hours 52 minutes back ∙ 71 proposals |
It is necessary to develop a Telegram bot for monitoring cars from auctions in the USA (Copart, IAAI)A Telegram bot is needed for automatic searching and monitoring of "BUY IT NOW" cars at auctions in the USA (Copart, IAAI). The bot should operate automatically and send notifications about new cars that meet the specified filters.Main functionalityFilter settings: 1. Car… Data Parsing, Bot Development ∙ 2 days 20 hours back ∙ 93 proposals |
Telegram bot
53 USD
I need code for a Telegram bot that will take messages from one channel, modify them to fit my design, and post them in two other channels. In one channel, from 1 to 6 posts, and in the other channel, all posts. Bot Development ∙ 3 days 10 hours back ∙ 93 proposals |