Instantly share code, notes, and snippets.
Douglaswsouza3
/ check_authorization.php
Created
June 10, 2024 00:34
— forked from shazdeh021p/check_authorization.php
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| define('BOT_TOKEN', 'XXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXX'); // place bot token of your bot here | |
| function checkTelegramAuthorization($auth_data) { | |
| $check_hash = $auth_data['hash']; | |
| unset($auth_data['hash']); | |
| $data_check_arr = []; | |
| foreach ($auth_data as $key => $value) { | |
| $data_check_arr[] = $key . '=' . $value; |
Douglaswsouza3
/ check_authorization.php
Created
May 19, 2024 18:36
— forked from anonymous/check_authorization.php
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| define('BOT_TOKEN', 'XXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXX'); // place bot token of your bot here | |
| function checkTelegramAuthorization($auth_data) { | |
| $check_hash = $auth_data['hash']; | |
| unset($auth_data['hash']); | |
| $data_check_arr = []; | |
| foreach ($auth_data as $key => $value) { | |
| $data_check_arr[] = $key . '=' . $value; |