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:
parent
3d4813eb02
commit
0dcd3d9c43
@ -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']);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user