Skip to content

Instantly share code, notes, and snippets.

View xandrkat's full-sized avatar
🎯
Your life in your mind.

Alexandr Katrazhenko xandrkat

🎯
Your life in your mind.
View GitHub Profile
pragma solidity ^0.4.23;
contract Consts {
string constant TOKEN_NAME = "AmonD";
string constant TOKEN_SYMBOL = "AMON";
uint8 constant TOKEN_DECIMALS = 18;
uint256 constant TOKEN_AMOUNT = 7600000000;
}
<?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;