mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-27 01:14:39 +01:00
Add windows notice
This commit is contained in:
parent
382cd3f0a7
commit
8e12707948
2
docs
2
docs
@ -1 +1 @@
|
||||
Subproject commit c1148c944af6f126ca28b926c5fef5a094dfe123
|
||||
Subproject commit c39338b2dab1bd347b5f1b2e30de8fc06518544a
|
@ -108,6 +108,10 @@ class MyEventHandler extends EventHandler
|
||||
/**
|
||||
* Handle updates from users.
|
||||
*
|
||||
* 100+ other types of onUpdate... method types are available, see https://docs.madelineproto.xyz/API_docs/types/Update.html for the full list.
|
||||
* You can also use onAny to catch all update types (only for debugging)
|
||||
* A special onUpdateCustomEvent method can also be defined, to send messages to the event handler from an API instance, using the sendCustomEvent method.
|
||||
*
|
||||
* @param array $update Update
|
||||
*/
|
||||
public function onUpdateNewMessage(array $update): void
|
||||
@ -181,10 +185,6 @@ class MyEventHandler extends EventHandler
|
||||
$this->logger($value);
|
||||
}
|
||||
}
|
||||
|
||||
// 100+ other types of onUpdate... method types are available, see https://docs.madelineproto.xyz/API_docs/types/Update.html for the full list.
|
||||
|
||||
// You can also use onAny to catch all update types (only for debugging)
|
||||
}
|
||||
|
||||
$settings = new Settings;
|
||||
|
@ -248,6 +248,9 @@ abstract class Serialization
|
||||
{
|
||||
for ($x = 0; $x < 60; $x++) {
|
||||
Logger::log('MadelineProto is starting, please wait...');
|
||||
if (\PHP_OS_FAMILY === 'Windows') {
|
||||
Logger::log('For Windows users: please switch to Linux if this fails.');
|
||||
}
|
||||
try {
|
||||
\clearstatcache(true, $ipcPath);
|
||||
$socket = connect($ipcPath);
|
||||
|
Loading…
Reference in New Issue
Block a user