Improvement of the Telegram bot
Project: Integration of saving and loading player data in Telegram Mini App through a database.
Goal:
Set up a system for saving and loading player data in the database instead of the device's local storage. Ensure that when the player re-enters the game, the player data (balance, progress, and other parameters) is correctly loaded from the database and saved to it upon changes.
What has already been implemented:
- Game logic in Construct — player data is saved in
localStorage, but now it needs to be stored in the database. - Backend in PHP — the main files (
getBalance.php,saveBalance.php) have been implemented, but there are issues with their operation. - Telegram Mini App — obtaining
telegram_idthrough the Telegram WebApp API, but it is not always processed correctly.
What needs to be done:
Fix data loading:
- Check that
getBalance.phpcorrectly acceptstelegram_idand returns data. - Ensure that when the game starts, data is loaded from the database and not reset to
0.
- Check that
Fix data saving:
- Check
saveBalance.phpto ensure that when the balance changes, it is correctly recorded in the database. - Add logging of requests to
debug_save.txtanddebug_load.txt.
- Check
Check that
telegram_idis passed correctly:- Add
console.logingetDataandsaveDatato ensure thattelegram_idis notundefined. - Check that a record is created in the database for each new player.
- Add
Technical details
- Frontend: Construct 3
- Backend: PHP + MySQL
- Hosting: Nginx (VPS)
- Database: MySQL
What will be considered task completion?
✅ The game loads the player's balance from the database upon startup.
✅ Changes in the game are saved in the database and are not lost after a restart.
Current freelance projects in the category Databases & SQL
Admin panel extension: adding SEO service pagesThe website is developed on: Backend: Java + Spring Boot Database: MySQL Frontend: JavaScript, HTML, CSS Template Engine: Thymeleaf Server: VPS (Linux Ubuntu) Reverse Proxy: Apache2 Architecture: Monolithic application Currently, the website has implemented: A blog with… HTML & CSS, Databases & SQL ∙ 1 hour 41 minutes back ∙ 10 proposals |
It is necessary to upload products into the corresponding categories and subcategories from SQL files.The site is created on WP. It has a product catalog. Products were uploaded from a PDF file, resulting in a bit of a mess. There are three files with a clear distribution of categories, subcategories, and products in them. In the file PA.sql, categories are numbered, for… Databases & SQL, Web Programming ∙ 2 hours 44 minutes back ∙ 24 proposals |
CRM system for Railway LogisticsCreation of a CRM system for a logistics company mainly focused on rail and road transport, 1) Financial reporting 2) Processing applications 3) Contractors 4) Automatic issuance of invoices and acts upon closure, it is possible to create a simplified system based on 1C below… Databases & SQL, Client Management & CRM ∙ 11 hours 19 minutes back ∙ 31 proposals |
Eliminate the issue of incomplete data import from Excel files of Nova Poshta specifications into 1C:
45 USD
Goal: There is a processing in 1C for uploading the specifications of Nova Poshta. For unclear reasons, it has stopped loading some tabular data. We need to find the reason and eliminate the problem of incomplete data import from Excel files of Nova Poshta specifications into… System & Network Administration, Databases & SQL ∙ 3 days 6 hours back ∙ 16 proposals |
Accounting, planning, and sales system for a mushroom farm
601 USD
Here is the complete, final text of the Technical Assignment (TA). It combines all your requirements: 16 chambers, 20 contractors, a schedule by days, accounting for containers, profitability calculation, and a mandatory division into three grades of mushrooms. You can fully… Databases & SQL, Client Management & CRM ∙ 5 days 10 hours back ∙ 56 proposals |