mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-30 08:18:59 +01:00
Make longs optional
This commit is contained in:
parent
4bba26df10
commit
378a5c0eb0
@ -147,6 +147,10 @@ class MyEventHandler extends EventHandler
|
||||
$this->restart();
|
||||
}
|
||||
|
||||
if (($update['message']['message'] ?? '') === 'ping') {
|
||||
$this->messages->sendMessage(['message' => 'pong', 'peer' => $update]);
|
||||
}
|
||||
|
||||
// Remove the following example code when running your bot
|
||||
|
||||
// Test MadelineProto's built-in database driver, which automatically maps to MySQL/PostgreSQL/Redis
|
||||
|
@ -731,7 +731,7 @@ final class TL
|
||||
}
|
||||
}
|
||||
}
|
||||
if ($current_argument['name'] === 'hash' && $current_argument['type'] === 'long') {
|
||||
if ($current_argument['type'] === 'long') {
|
||||
$serialized .= "\0\0\0\0\0\0\0\0";
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user