1
0
mirror of https://github.com/danog/MadelineProto.git synced 2025-01-23 10:51:25 +01:00

Fix booleans

This commit is contained in:
Daniil Gentili 2017-07-26 20:02:51 +02:00
parent 89137fe82e
commit 6b7d19ed56

View File

@ -319,7 +319,7 @@ trait TL
return $concat;
case 'Bool':
return $this->constructors->find_by_predicate($bool ? 'boolTrue' : 'boolFalse')['id'];
return $this->constructors->find_by_predicate(((bool)$object) ? 'boolTrue' : 'boolFalse')['id'];
case 'true':
return;
case '!X':