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
|
* @var int
|
||||||
*/
|
*/
|
||||||
const V = 136;
|
const V = 137;
|
||||||
/**
|
/**
|
||||||
* String release version.
|
* String release version.
|
||||||
*
|
*
|
||||||
@ -1186,12 +1186,12 @@ class MTProto extends AsyncConstruct implements TLCallback
|
|||||||
'lang_pack' => $lang_pack,
|
'lang_pack' => $lang_pack,
|
||||||
], 'tl_schema' => [
|
], 'tl_schema' => [
|
||||||
// TL scheme files
|
// TL scheme files
|
||||||
'layer' => 110,
|
'layer' => 111,
|
||||||
// layer version
|
// layer version
|
||||||
'src' => [
|
'src' => [
|
||||||
'mtproto' => __DIR__.'/TL_mtproto_v1.tl',
|
'mtproto' => __DIR__.'/TL_mtproto_v1.tl',
|
||||||
// mtproto TL scheme
|
// mtproto TL scheme
|
||||||
'telegram' => __DIR__.'/TL_telegram_v110.tl',
|
'telegram' => __DIR__.'/TL_telegram_v111.tl',
|
||||||
// telegram TL scheme
|
// telegram TL scheme
|
||||||
'secret' => __DIR__.'/TL_secret.tl',
|
'secret' => __DIR__.'/TL_secret.tl',
|
||||||
// secret chats TL scheme
|
// secret chats TL scheme
|
||||||
|
@ -536,6 +536,9 @@ trait Files
|
|||||||
$res['InputMedia']['ttl_seconds'] = $media['ttl_seconds'];
|
$res['InputMedia']['ttl_seconds'] = $media['ttl_seconds'];
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case 'messageMediaDice':
|
||||||
|
$res['InputMedia'] = ['_' => 'inputMediaDice'];
|
||||||
|
break;
|
||||||
case 'poll':
|
case 'poll':
|
||||||
$res['InputMedia'] = ['_' => 'inputMediaPoll', 'poll' => $res['Poll']];
|
$res['InputMedia'] = ['_' => 'inputMediaPoll', 'poll' => $res['Poll']];
|
||||||
break;
|
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