Skip to content

Instantly share code, notes, and snippets.

View paulojp-dev's full-sized avatar
🏠
Working from home

João Paulo F. da Silva paulojp-dev

🏠
Working from home
View GitHub Profile
@wesleywillians
wesleywillians / download-composer
Created June 20, 2019 01:13
Nginx.conf e Linha para baixar o composer
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
<?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;