TELEGRAM WEB APP
Task:
Develop a server function in PHP for validating the hash of data transmitted from the Telegram Web App.
Description:
Client side:
User data initialization is performed through window.Telegram.WebApp.initData.
After that, user data is sent to the server via an HTTP request using Axios.
Instead of initData, initDataUnsafe or initDataRaw can be used, but in this case, it will be necessary to send the client code that works with these methods.
Server side:
Implement a function to process incoming data, including:
Generating a hash from the transmitted data using the algorithm specified in the Telegram Web App documentation.
Comparing it with the hash received on the client (for example, from initData).
Ensuring that the generated hash matches the original one received from Telegram.
Implementation requirements:
The code must work correctly in testing conditions, including:
Handling any valid input data.
Generating the hash strictly according to the Telegram algorithm.
In case of errors or discrepancies, provide handling (for example, displaying an error message).
Use PHP.
Results:
Working server code for hash validation.
If the initDataUnsafe or initDataRaw method is used, provide client code for testing.
Success criteria:
Complete match of the hash generated by the server with the hash from initData.
No errors during the validation process.
Current freelance projects in the category Bot Development
BOT, TG
226 USD
Hello everyone, friends. I will try to describe what is needed in more detail, but if questions arise, we will discuss them more deeply and clarify in private messages. We are focused on sales in the construction sector: in general, this includes several sales channels and… Data Parsing, Bot Development ∙ 3 hours 48 minutes back ∙ 29 proposals |
Development of a Telegram bot according to the specifications
609 USD
It is necessary to develop a Telegram bot according to the specifications:https://docs.google.com/document/d/1ysaZuOs53k6E8ny8QoNgUofpqCJ9b6MjfC3v-F7lw50/edit?usp=sharingThe estimated budget for the project is defined in the specifications.Please familiarize yourself with the… Bot Development ∙ 4 hours 34 minutes back ∙ 38 proposals |
Telegram Bot RPGHello, dear programmers! I am looking for a developer to create a Telegram project in the format of a text-based role-playing game (RPG) in the Eurovision universe (similar to text-based role-playing Club Romance). Please read the concept step by step and give your feedback on… Gaming Apps, Bot Development ∙ 1 day back ∙ 61 proposals |
Technical Specification for Refinement of AI Bot for Generating Personalized SongsTECHNICAL TASK FOR IMPROVING THE AI PERSONAL SONG GENERATOR BOTMAIN GOAL Create a stable premium product that: generates the highest quality personal songs; does not fabricate facts about the client; works stably under load; is easily scalable; allows for analysis and… Python, Bot Development ∙ 1 day 1 hour back ∙ 30 proposals |
A bot needs to be created in Telegram for subscription payment.
45 USD
A bot needs to be created in Telegram where users can subscribe for access to the webcams located in the yard. Organize payment for two types of subscriptions (monthly and daily) in the bot. The bot should automatically check the payment and then provide access links. Python, Bot Development ∙ 1 day 17 hours back ∙ 78 proposals |