diff --git a/examples/secret_bot.php b/examples/secret_bot.php index 13a616d07..e857f519e 100755 --- a/examples/secret_bot.php +++ b/examples/secret_bot.php @@ -58,18 +58,6 @@ class SecretHandler extends SimpleEventHandler } public function onStart(): void { - $f = $this->account->uploadWallPaper( - file: '/home/daniil/Immagini/wallhaven/wallhaven-q65qj5.jpg', - mime_type: 'image/jpeg', - settings: ['_' => 'wallPaperSettings'], - for_chat: true - ); - var_dump($this->messages->setChatWallPaper( - for_both: true, - peer: 'danogentili', - wallpaper: ['_' => 'inputWallPaper', 'id' => $f['id'], 'access_hash' => $f['access_hash']] - )); - $this->readLine(); } /** * Handle updates from users. diff --git a/tools/layertest.php b/tools/layertest.php index 95e3a48fe..4b3d10810 100644 --- a/tools/layertest.php +++ b/tools/layertest.php @@ -59,7 +59,7 @@ foreach ($new['methods']->by_id as $constructor) { if (strtolower($name) === 'account.deleteaccount') { continue; } - readline("$name?"); + //readline("$name?"); [$namespace, $method] = explode('.', $name); try { $bot->{$namespace}->{$method}();