Skip to content

Instantly share code, notes, and snippets.

Avatar

Jebat Derhaka kamarules74

View GitHub Profile
View check_authorization.php
<?php
define('BOT_TOKEN','1304055057:AAE9uecO8dTW1LmFJSBhwQnA2nlIqTEcSdE); // 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;