Fix a bug in the Telegram bot (PHP)
Hello!
There is a custom Telegram bot in PHP.
There is one file where all the bot's code is located. The bug, or rather the error, is that if the bot was open for the user (the dialogue with it was active and the bot was not blacklisted) for a long time and the user did not use this bot for a long time, then when pressing the bot's menu buttons, the bot duplicates the message with the menu and sends it as a new message. I don't understand why this happens. I was once told that maybe in my code, the exit is not set everywhere...
Relevant today. Need it for today.
-
22 I already have an idea of what the problem is, I'm ready to fix it, there are literally up to 10 lines of code to add at most )
-
12912 67 0 Hello! I will complete your task quickly and efficiently.
My portfolio: https://freelancehunt.com/ua/freelancer/romas6ka.html#portfolio
Write to me, I will start working today. I will be happy to collaborate with you!
-
285 Good day.
I understand that dealing with such bugs is always unpleasant.
The error with the menu duplication upon repeated pressing is often related to the script continuing to execute and sending the message multiple times.
You mentioned exit — yes, often in PHP bots, after sending a response, it is necessary to stop further script execution to avoid repeated actions.
To help more accurately, can we take a look at the code?
Or, if it's difficult to provide the code right now, could you describe how your message processing loop is generally structured and where exactly the menu is sent?
-
646 7 1 Good day. I am ready to fix the project. I have experience, I will complete it very quickly.
-
307 Hello.
I have extensive experience in developing and debugging bots for Telegram in PHP, including working with long sessions and edge cases. Judging by your description, the duplication issue is likely related to the lack of proper exit/return operators or incomplete stream handling in your single-file logic. I will be able to quickly analyze this and fix it. I will carefully refactor the code to ensure correct execution flow, prevent response duplication, and improve support without changing the current functionality of the bot. With my experience in creating and stabilizing user bots, I can offer you a clear and reliable solution.
-
97052 1277 1 10 Hello. I have extensive experience in developing Telegram bots. I am ready to fix the problem.
-
4182 198 2 5 Ready to help figure things out today, write.
Ready to help figure things out today, write.
-
602 8 0 Good day!
I have experience in developing Telegram bots in PHP. Write me a private message, and I will figure out what the problem is.
-
1762 19 0 1 Hello!
We are working on the development of software, websites, automation systems, and more.
We take on projects "from scratch" as well as technical refinements.
We work with a wide stack: WordPress, Opencart, Shopify, WIX, Python, JavaScript, C++, C#, Unity 3D, SQL, MSSQL, WPF, WinForms.
We have practical experience in:
– system and application programming
– business process automation
… – information security
– technical project management
After project delivery — we provide free technical support for 14 days.
We work quickly, clearly, and results-oriented.
We look forward to collaborating!
-
12423 600 0 Hello, feel free to reach out, I will help solve this problem..................
-
656 9 0 Good evening, Yuri!
In general, the task is clear, but for an accurate answer regarding the deadlines and price, I would like to clarify some questions that arose after analyzing your task.
Please write in private messages — we will discuss the details and your wishes.
-
1263 2 1 Hello!
I will be happy to help with editing/improving the current bot code.
Thank you for your response.
-
866 26 4 1 I would like to take a look at the bot's code.
-
601 24 0 Hello, Yuri!
Write to me. I can check your mess right now )
-
1423 46 0 Hello, I am ready to help with the bot. Please write in private messages to discuss the details. I will be happy to collaborate!
-
1323 35 1 Good day. I have written many bots for Telegram. Feel free to contact me, I will study the code, find the error, and fix it.
Current freelance projects in the category Web Programming
Automation of sending KP messages on LinkedIn, WhatsApp, Reddit
223 USD
Automation is needed for sending messages with a link to the KP on LinkedIn, WhatsApp, Reddit. Please describe how this will be implemented, the timeline, and the cost. AI & Machine Learning, Web Programming ∙ 8 hours 56 minutes back ∙ 28 proposals |
Acceleration of website performance (code optimization)
45 USD
1. It is necessary to analyze the website and optimize the code for fast loading of the site. 2. Conduct an analysis of the website for errors and fix them. Web Programming ∙ 14 hours 2 minutes back ∙ 57 proposals |
Moving from Hosting to AnotherGood day I plan to transfer the website from the hosting in Ukraine to hosting.works. Also, it is necessary to set up a rule that if the traffic from a certain IP exceeds, for example, 100 requests per day, it should be blocked. Content Management Systems, Web Programming ∙ 17 hours 36 minutes back ∙ 77 proposals |
Creation of a website for a recruitment agency
1115 USD
We are a recruitment agency, and we are looking for an experienced web developer to create a modern and user-friendly website. We want to allow candidates to propose their own price for the service. Therefore, we are looking for a specialist who has experience in custom… Web Programming ∙ 18 hours 25 minutes back ∙ 112 proposals |
Improvement of site CR conversion
145 USD
Improvement of the website's CR conversion. Tasks according to the specifications https://docs.google.com/document/d/1Y7zipbe2IEnFpthYuheAr6QA_50aR2Fz8V14rp5NpNo/edit?usp=sharingBOOK NOW buttonphoto / videoshort textAND IMMEDIATELY the booking formfixed (sticky)to repeat every… HTML & CSS, Web Programming ∙ 21 hours 39 minutes back ∙ 37 proposals |