1
0
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:
Daniil Gentili 2023-04-26 17:50:29 +02:00
parent 4bba26df10
commit 378a5c0eb0
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -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;
}