Instantly share code, notes, and snippets.
ade666999
/ check_authorization.php
Last active
February 2, 2025 01:12
— forked from anonymous/check_authorization.php
telegram通知
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; |
ade666999
/ check_authorization.php
Created
February 2, 2025 01:11
— 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; |