Switch to English?
Yes
Переключитись на українську?
Так
Переключиться на русскую?
Да
Przełączyć się na polską?
Tak
With a certain command, the Telegram bot gives you a link to your chat ID.With a certain command, the Telegram bot gives you a link to your chat ID.You will have your link, which will have a status (displayed in the console)

And I was given 3 databases of bot telegrams, workers, currency, users.The point was that I had to make 3 statuses for users and workers, status 0 - random values of the graph relative to (-2 ; 2), status 1 - winning, т.е. if a person with status 1 bet on downgrade, the graph will go down, the same goes for promotion, status 2 is a loss, т.е.

Если человек с статусом 2 ставки на снижение, график будет уходить с небольшим интервалом, обычно статус 2 и 0 были использованы для пользователей.I had to take this status in the database, in relation to the Telegram bot (of course, I informed the customer that he needed a separate server for the database, but at the moment I did it directly from the file), in which the "senior" could select a user and put his status, then the database was changing, so I made it so that the database was updated every time the page was loaded.Я также должен был убедиться, что каждый пользователь имел свою собственную страницу.Изменить фронтэнд, и пара больше упражнений

Как я сделал это?Для начала с, I read the code of the bot's telegrams, read what is contained in the databases, read the entire code (около 50,000 lines), it was difficult to understand what was to what, because I was analyzing someone's code, which was written very awkwardly, not broken down into blocks, not formed After that I realized that it would be best to write it in django, I rewrote all the code in django so that I could work both with python (on which the telegram bot is written) and to work with html.После этого, I made my own page for each user using the chat ID from the user database (this database was taken from the Telegram bot, which, when pressing the start button, recorded all the necessary information in the database, and recorded default data for unknown information).You will not be able to use the web page without a chat ID that is in your database.That is, the path to the page should look something like this: https://YOUR_HOST/658257014.Статус 0: Raindom integer, min 25 000, max 35 000.Сэс (-2, 2)
Статус 1: Win, min 25 000, max 35 000.Если пользователь решил увеличить график, шансы: (-2, 4)
Статус 2: Loss, min 25 000, max 35 000.Если пользователь решил увеличить график, шансы: (-4, 2)
Детали работы
Бюджет 50 UAH
Добавлена 23 марта 2024
101 просмотр
Фрилансер
Андрій Хоміцький
Украина Украина
Нет отзывов

Свободен для работы Свободен для работы
На сервисе 4 года