Skip to content

Instantly share code, notes, and snippets.

View CyberNash52's full-sized avatar

CyberNash CyberNash52

  • 10:49 (UTC -02:00)
View GitHub Profile
<?php
define('5886810319', 'AAErbQLr4ZY9oq1gWsCSNIVdSb8s0O9dD1I'); // 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;