Add support for layer 111 (#782)

This commit is contained in:
giuseppeM99 2020-03-31 17:30:25 +02:00 committed by GitHub
parent 832aff00da
commit eb43707118
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 1503 additions and 3 deletions

View File

@ -87,7 +87,7 @@ class MTProto extends AsyncConstruct implements TLCallback
*
* @var int
*/
const V = 136;
const V = 137;
/**
* String release version.
*
@ -1186,12 +1186,12 @@ class MTProto extends AsyncConstruct implements TLCallback
'lang_pack' => $lang_pack,
], 'tl_schema' => [
// TL scheme files
'layer' => 110,
'layer' => 111,
// layer version
'src' => [
'mtproto' => __DIR__.'/TL_mtproto_v1.tl',
// mtproto TL scheme
'telegram' => __DIR__.'/TL_telegram_v110.tl',
'telegram' => __DIR__.'/TL_telegram_v111.tl',
// telegram TL scheme
'secret' => __DIR__.'/TL_secret.tl',
// secret chats TL scheme

View File

@ -536,6 +536,9 @@ trait Files
$res['InputMedia']['ttl_seconds'] = $media['ttl_seconds'];
}
break;
case 'messageMediaDice':
$res['InputMedia'] = ['_' => 'inputMediaDice'];
break;
case 'poll':
$res['InputMedia'] = ['_' => 'inputMediaPoll', 'poll' => $res['Poll']];
break;

File diff suppressed because it is too large Load Diff