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

Support empty DataJSON fields

This commit is contained in:
Daniil Gentili 2022-05-15 22:29:55 +02:00
parent a5b0e95159
commit 1f55447a3a
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7

View File

@ -702,6 +702,10 @@ class TL
case 'vector':
$arguments[$current_argument['name']] = [];
break;
case 'DataJSON':
case '%DataJSON':
$arguments[$current_argument['name']] = null;
break;
default:
throw new Exception("Missing required parameter ".$current_argument['name']);
}