mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-26 19:24:42 +01:00
Cleanup
This commit is contained in:
parent
dc251588e4
commit
831e2b5ae4
@ -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.
|
||||
|
@ -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}();
|
||||
|
Loading…
Reference in New Issue
Block a user