Parse peers from smore updates

This commit is contained in:
Daniil Gentili 2019-04-29 11:18:39 +00:00
parent 9a6e9f363e
commit c21bcba681

View File

@ -240,6 +240,7 @@ trait PeerHandler
case 'notifyPeer':
case 'dialog':
case 'help.proxyDataPromo':
case 'updateChatDefaultBannedRights':
return $this->get_id($id['peer']);
case 'inputUserSelf':
case 'inputPeerSelf':
@ -290,6 +291,7 @@ trait PeerHandler
case 'updateChatParticipantDelete':
case 'updateChatParticipantAdmin':
case 'updateChatAdmins':
case 'updateChatPinnedMessage':
return -$id['chat_id'];
case 'updateUserTyping':
case 'updateUserStatus':
@ -305,6 +307,7 @@ trait PeerHandler
case 'updateBotCallbackQuery':
case 'updateBotPrecheckoutQuery':
case 'updateBotShippingQuery':
case 'updateUserPinnedMessage':
return $id['user_id'];
case 'updatePhoneCall':
return $id->getOtherID();