Skip to content

Instantly share code, notes, and snippets.

View upekshaip's full-sized avatar
📖
Studying…

Upeksha Indeewara upekshaip

📖
Studying…
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;
@upekshaip
upekshaip / mime types.json
Created December 9, 2022 13:39 — forked from PatrickChildersIT/mime types.json
the mime types i got from google drive
[
"application/*",
"application/0",
"application/1",
"application/apk",
"application/applefile",
"application/arj",
"application/armor",
"application/base64",
"application/binary",