1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-26 19:24:42 +01:00
This commit is contained in:
Daniil Gentili 2023-12-11 19:30:58 +01:00
parent dc251588e4
commit 831e2b5ae4
2 changed files with 1 additions and 13 deletions

View File

@ -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.

View File

@ -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}();