Skip to content

Instantly share code, notes, and snippets.

View Huynhhung0's full-sized avatar
💭
0x1E833F4eAEA59e3D9119F0b723A22300C47b3e97

Huynh Phi Hung Huynhhung0

💭
0x1E833F4eAEA59e3D9119F0b723A22300C47b3e97
View GitHub Profile
<?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;