{"repo":"CrazyTapok-bit/tgWebValid","free":true,"listed":false,"github":"https://github.com/CrazyTapok-bit/tgWebValid","clone":"git clone https://github.com/CrazyTapok-bit/tgWebValid.git","description":"An easy way to validate Telegram Login Widget and Telegram Mini App users on your website using PHP","language":"PHP","stars":68,"topics":["telegram-login","telegram-login-widget","telegram-web-app","telegram-web-login","login-widget","mini-app","telegram","telegram-bot","telegram-mini-app"],"license":"MIT","category":"chat-messaging","readme_excerpt":"Library for Telegram Web App User Validation and Telegram Login Widget for PHP About TgWebValid They say we are cool 😎 ⭐️ Support us, give us a star on GitHub and become our sponsor 😊 🙏 Please let us know on GitHub if something isn't working for you or if you need additional functionality User authentication occurs by encrypting the received, raw, user data and comparing it with the hash provided by the telegram. A failed check can be equated with a possible attempt to bypass or hack the system. The library verifies users Telegram Login Widget and Telegram Web App WARNING : Use user data only after successful authentication To quickly and safely verify a user, we recommend following a few simple steps Installation You can install the TgWebValid library through the composer package manager by executing the command Add the --no-dev flag to install only the dependencies needed to run your project in a production environment. Using The first thing you need to do is to set in the constructor of the TgWebValid class the token of the Telegram bot on behalf of which authentication is performed by default. And store the result in a variable. Also, if you want to throw an exception in case of a validation error, set the second parameter to true. But be sure to use the try catch structure If your project uses multiple bots, you can easily interact with them, just add them all Getting a bot to work is easy. Specify the name of the bot to work with, or leave the argument empty to get t","default_branch":null,"files":null,"tree":[],"storefront":"/r/CrazyTapok-bit","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/CrazyTapok-bit/tgWebValid/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}