Improve update management and documentation
This commit is contained in:
parent
3dd038e99b
commit
d53469ee0e
@ -47,7 +47,8 @@ $MadelineProto->channels->joinChannel(['channel' => '@MadelineProto']);
|
|||||||
## Documentation
|
## Documentation
|
||||||
|
|
||||||
- [Features](https://docs.madelineproto.xyz/FULL_README.html#features)
|
- [Features](https://docs.madelineproto.xyz/FULL_README.html#features)
|
||||||
- [Methods](https://docs.madelineproto.xyz/FULL_README.html#methods)
|
- [Full method list](https://docs.madelineproto.xyz/API_docs/methods)
|
||||||
|
- [How to use these methods](https://docs.madelineproto.xyz/FULL_README.html#methods)
|
||||||
- [Clicking inline buttons](https://docs.madelineproto.xyz/FULL_README.html#inline-buttons)
|
- [Clicking inline buttons](https://docs.madelineproto.xyz/FULL_README.html#inline-buttons)
|
||||||
- [Uploading and downloading files](https://docs.madelineproto.xyz/FULL_README.html#uploading-and-downloading-files)
|
- [Uploading and downloading files](https://docs.madelineproto.xyz/FULL_README.html#uploading-and-downloading-files)
|
||||||
- [Changing settings](https://docs.madelineproto.xyz/FULL_README.html#settings)
|
- [Changing settings](https://docs.madelineproto.xyz/FULL_README.html#settings)
|
||||||
|
@ -47,7 +47,8 @@ $MadelineProto->channels->joinChannel(['channel' => '@MadelineProto']);
|
|||||||
## Documentation
|
## Documentation
|
||||||
|
|
||||||
- [Features](https://docs.madelineproto.xyz/FULL_README.html#features)
|
- [Features](https://docs.madelineproto.xyz/FULL_README.html#features)
|
||||||
- [Methods](https://docs.madelineproto.xyz/FULL_README.html#methods)
|
- [Full method list](https://docs.madelineproto.xyz/API_docs/methods)
|
||||||
|
- [How to use these methods](https://docs.madelineproto.xyz/FULL_README.html#methods)
|
||||||
- [Clicking inline buttons](https://docs.madelineproto.xyz/FULL_README.html#inline-buttons)
|
- [Clicking inline buttons](https://docs.madelineproto.xyz/FULL_README.html#inline-buttons)
|
||||||
- [Uploading and downloading files](https://docs.madelineproto.xyz/FULL_README.html#uploading-and-downloading-files)
|
- [Uploading and downloading files](https://docs.madelineproto.xyz/FULL_README.html#uploading-and-downloading-files)
|
||||||
- [Changing settings](https://docs.madelineproto.xyz/FULL_README.html#settings)
|
- [Changing settings](https://docs.madelineproto.xyz/FULL_README.html#settings)
|
||||||
|
@ -458,7 +458,17 @@ trait ResponseHandler
|
|||||||
$message = $updates;
|
$message = $updates;
|
||||||
$message['_'] = 'message';
|
$message['_'] = 'message';
|
||||||
$message['from_id'] = $from_id;
|
$message['from_id'] = $from_id;
|
||||||
$message['to_id'] = $this->get_info($to_id)['Peer'];
|
try {
|
||||||
|
$message['to_id'] = $this->get_info($to_id)['Peer'];
|
||||||
|
} catch (\danog\MadelineProto\Exception $e) {
|
||||||
|
\danog\MadelineProto\Logger::log('Still did not get user in database, postponing update', \danog\MadelineProto\Logger::ERROR);
|
||||||
|
$this->pending_updates[] = $updates;
|
||||||
|
break;
|
||||||
|
} catch (\danog\MadelineProto\RPCErrorException $e) {
|
||||||
|
\danog\MadelineProto\Logger::log('Still did not get user in database, postponing update', \danog\MadelineProto\Logger::ERROR);
|
||||||
|
$this->pending_updates[] = $updates;
|
||||||
|
break;
|
||||||
|
}
|
||||||
$update = ['_' => 'updateNewMessage', 'message' => $message, 'pts' => $updates['pts'], 'pts_count' => $updates['pts_count']];
|
$update = ['_' => 'updateNewMessage', 'message' => $message, 'pts' => $updates['pts'], 'pts_count' => $updates['pts_count']];
|
||||||
$this->handle_update($update, $opts);
|
$this->handle_update($update, $opts);
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user