Skip to content

Instantly share code, notes, and snippets.

View SoeAung95's full-sized avatar

Magic_Stone SoeAung95

View GitHub Profile
@SoeAung95
SoeAung95 / check_authorization.php
Last active March 3, 2025 10:12 — forked from anonymous/check_authorization.php
Gist_Clone_Telegram_Data
<?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;