Skip to content

Instantly share code, notes, and snippets.

View shift-reality's full-sized avatar
💭
hi

Bogdan shift-reality

💭
hi
View GitHub Profile
<?php
class MarketBot {
function __construct(array $target, $timeout = 5) {
$this->target = $target;
$this->timeout = $timeout;
}
function send($message) {
<?php
$data = json_decode(file_get_contents('php://input'), TRUE);
$str = '';
$str .= var_export($data['program'], TRUE) . PHP_EOL;
$str .= var_export($data['chat'], TRUE) . PHP_EOL;
$str .= var_export($data['profile'], TRUE) . PHP_EOL;
$str .= var_export($data['formdata'], TRUE) . PHP_EOL;