Add support for layer 111 (#782)
This commit is contained in:
parent
832aff00da
commit
eb43707118
@ -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
|
||||
|
@ -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;
|
||||
|
1497
src/danog/MadelineProto/TL_telegram_v111.tl
Normal file
1497
src/danog/MadelineProto/TL_telegram_v111.tl
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user