Minor fixes
This commit is contained in:
parent
f5e4d29db1
commit
e5c430dfc9
@ -362,8 +362,8 @@ class API extends InternalDoc
|
|||||||
while (true) {
|
while (true) {
|
||||||
try {
|
try {
|
||||||
yield $this->start();
|
yield $this->start();
|
||||||
$started = true;
|
|
||||||
yield $this->setEventHandler($eventHandler);
|
yield $this->setEventHandler($eventHandler);
|
||||||
|
$started = true;
|
||||||
return yield from $this->API->loop();
|
return yield from $this->API->loop();
|
||||||
} catch (\Throwable $e) {
|
} catch (\Throwable $e) {
|
||||||
$errors = [\time() => $errors[\time()] ?? 0];
|
$errors = [\time() => $errors[\time()] ?? 0];
|
||||||
|
@ -47,8 +47,10 @@ class MyTelegramOrgWrapper
|
|||||||
private string $creation_hash = '';
|
private string $creation_hash = '';
|
||||||
/**
|
/**
|
||||||
* Settings.
|
* Settings.
|
||||||
|
*
|
||||||
|
* @var Settings
|
||||||
*/
|
*/
|
||||||
private Settings $settings;
|
private $settings;
|
||||||
/**
|
/**
|
||||||
* Async setting.
|
* Async setting.
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user