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']);
|
$id = $this->to_supergroup($id['channel_id']);
|
||||||
break;
|
break;
|
||||||
case 'message':
|
case 'message':
|
||||||
|
case 'messageService':
|
||||||
if (!isset($id['from_id']) || $id['to_id']['_'] !== 'peerUser' || $id['to_id']['user_id'] !== $this->authorization['user']['id']) {
|
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']);
|
return $this->get_info($id['to_id']);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user