Telegram bot PHP. Fix a little moment.
Hello. There is a Telegram bot in PHP.
The essence is as follows. In the database, there is a table called balance. It creates a user ID of a person with Telegram and their balance.
The problem is that all this is created in the balance table only after the person presses a specific button in the bot with the value ro_main. This is inconvenient and later causes a payment issue in the bot. I see 2 options to solve this problem.
1. To have all the information entered into the balance table without pressing the button, as soon as the bot is initially started. Just like in the bot, there is a table called accounts. For example, everything is entered there when the bot starts without any pressing of other buttons.
2. There is a suitable button in the bot that I like, so that after pressing it, the information is entered into the balance table. This button is "Bank Card". I tried changing to_main to ps_card. It is entered into the table perfectly, just as I need. But then, after pressing the "Bank Card" button, the bot always writes "Updating" instead of displaying what was needed next in the sequence.
Applications 2
-
372 Good day, Roman!
I have carefully reviewed the description of your task and see that the problem is related to the logic of creating records in the balance table in the PHP Telegram bot. I have experience working with PHP, MySQL, and the Telegram Bot API, particularly in the area of handling callback buttons, auto-recording data, and optimizing the logic of interaction with the database.
I can offer two possible approaches, depending on your priority:
Automatic recording in the balance table when the bot starts, without pressing buttons, to avoid data loss.
Refining the logic of button handling so that the required information is recorded in the database even when clicking on "Bank Card," with the correct sequence of display.
I am ready to quickly analyze your code, suggest the optimal option, and implement the changes, testing them in practice. I can start working immediately after agreeing on the details.
…
I look forward to collaborating!
-
463 6 0 Hello!
I can implement the correct entry of data into the balance table either at the bot's startup stage or when the "Bank Card" button is pressed, without disrupting the further workflow scenario. I will optimize the current logic to eliminate payment issues in the future.
-
628 28 0 1 Good day!
I will analyze the current code and database structure, and suggest a better solution.
Message me privately for details clarification.
-
9897 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!
-
2581 283 2 5 Good day, I have extensive experience in solving similar tasks...
Feel free to reach out, it will be ready today )
-
596 8 0 Good day! I am ready to complete your task.
I suggest implementing automatic record creation in the balance table upon the first start of the bot, similar to how data is currently added to accounts. This will completely eliminate the need to press additional buttons to initialize the balance.
Alternatively, I can link the creation of the balance to the "Bank Card" button without disrupting the further logic of the bot's operation. I will complete the work quickly and with a guarantee of correct operation.
-
180 1 0 Good afternoon, I will do it promptly. The update keeps showing for you because an error occurs and the script does not execute. The most correct solution to the problem is indeed to create a record in the table when starting to work with the bot.
-
612 8 0 Good day!!
I have experience in developing Telegram bots. Write to me in private messages. I have indicated the price.
-
93808 1266 1 10 Hello. I have extensive experience in developing Telegram bots. I am ready for collaboration.
-
2657 427 9 1 "Why not register it right at the start, let me know I can do it."
-
656 9 0 Good morning, Roman!
In general, the task is clear, I already have experience with bot implementation, to give an accurate answer regarding the deadlines and price, I would like to clarify some questions that arose after analyzing your task.
Write in private messages — we will discuss the details and your wishes.
P.S. I am guided by your budget, but I think I can fit into a smaller amount — after clarifying the details, I will offer an exact figure.
-
1267 35 1 Good day. Feel free to reach out. This is my topic.
++-+-++++++++--+--++++++++
-
598 12 2 I will complete your task immediately. Quickly and efficiently. Over 6 years of experience in programming and administration.
-
3012 73 4 2 Good day! I have experience working with php!! Feel free to contact me, I can help you!!!!
-
457 3 0 Good morning.
I can make corrections, write to me in private.
I have enough experience with bots as well as with php.
We will resolve everything quickly today)
Current freelance projects in the category PHP
Website auditTask for technical debugging of OpenCart 3 (ocStore). I need a fixed budget for the result, not hourly payment. List of tasks 1. Fixing 500 error: A conflict occurs when updating modifiers (likely between system/seo_package.ocmod.xml and unixml.ocmod.xml). It is necessary to… Content Management Systems, PHP ∙ 14 hours 34 minutes back ∙ 34 proposals |
Development of a single project based on the refinement and integration of 4 scriptsHello. I need to combine 4 scripts from different authors into a single environment. The composition includes a forum, a video portal, an article portal, and a classifieds board. I will provide the scripts. Detailed specifications are in the attached files. Please think about… PHP, Web Programming ∙ 16 hours 1 minute back ∙ 27 proposals |
A WordPress site using the Kadence theme and Kadence Blocks.
225 USD
We need to create a website on WordPress using the Kadence theme and Kadence Blocks. There will be no online store (although it may be added in the future). We need a homepage and several internal pages. The graphics are already prepared, the layout structure is mostly defined,… Content Management Systems, PHP ∙ 19 hours 28 minutes back ∙ 34 proposals |
Development of 2 SEO-oriented websites for selling spare parts (ATVs and special equipment)Development of Two Specialized Websites for Selling Spare PartsGeneral Information It is necessary to develop two specialized websites: Spare parts for ATVs, UTVs, SSVs, and other similar equipment. Spare parts for special equipment. Existing company website:… PHP, Web Programming ∙ 1 day 16 hours back ∙ 67 proposals |
Looking for a white-label solution for a betting company for rent. |