Fixes for secret chat layers

This commit is contained in:
Daniil Gentili 2017-06-01 19:12:18 +02:00
parent c11c2fabf4
commit ef49472330
3 changed files with 7 additions and 3 deletions

View File

@ -717,7 +717,7 @@ class MTProto extends \Volatile
public function getV()
{
return 36;
return 37;
}
public function get_self()

View File

@ -544,7 +544,7 @@ trait TL
$id = stream_get_contents($stream, 4);
$constructorData = $this->constructors->find_by_id($id);
if ($constructorData === false) {
throw new Exception('Could not extract type: '.$type['type'].' with id '.$id);
throw new Exception('Could not extract type: '.$type['type'].' with id '.bin2hex(strrev($id)));
}
switch ($constructorData['predicate']) {
case 'gzip_packed':
@ -577,7 +577,7 @@ trait TL
$id = stream_get_contents($stream, 4);
$constructorData = $this->constructors->find_by_id($id);
if ($constructorData === false) {
throw new Exception('Could not extract type: '.$type['type'].' with id '.$id);
throw new Exception('Could not extract type: '.$type['type'].' with id '.bin2hex(strrev($id)));
}
}
}

View File

@ -63,4 +63,8 @@ decryptedMessageMediaDocument#7afe8ae2 thumb:bytes thumb_w:int thumb_h:int mime_
===46===
decryptedMessageMediaVenue#8a0df56f lat:double long:double title:string address:string provider:string venue_id:string = DecryptedMessageMedia;
documentAttributeAudio#ded218e0 duration:int title:string performer:string = DocumentAttribute;
decryptedMessageMediaWebPage#e50511d8 url:string = DecryptedMessageMedia;
===55===
documentAttributeSticker#3a556302 alt:string stickerset:InputStickerSet = DocumentAttribute;