1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-30 06:59:01 +01:00

Extract chat ID from service messages

This commit is contained in:
Daniil Gentili 2018-03-27 22:46:06 +00:00
parent 3d4813eb02
commit 0dcd3d9c43

View File

@ -256,6 +256,7 @@ trait PeerHandler
$id = $this->to_supergroup($id['channel_id']);
break;
case 'message':
case 'messageService':
if (!isset($id['from_id']) || $id['to_id']['_'] !== 'peerUser' || $id['to_id']['user_id'] !== $this->authorization['user']['id']) {
return $this->get_info($id['to_id']);
}