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

Update PeerHandler.php
All checks were successful
ci/woodpecker/push/build Pipeline was successful

This commit is contained in:
Daniil Gentili 2022-07-18 17:27:57 +02:00 committed by GitHub
parent 4d66b01aeb
commit 4a066cd3f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -821,7 +821,7 @@ trait PeerHandler
*/
public function refreshPeerCache($id): \Generator
{
$id = yield from $this->getInfo($id)['bot_api_id'];
$id = (yield from $this->getInfo($id))['bot_api_id'];
if ($id < 0) {
yield from $this->methodCallAsyncRead('channels.getChannels', ['id' => [$this->genAll(yield $this->chats[$id], 0, MTProto::INFO_TYPE_CONSTRUCTOR)]]);
} else {
@ -836,7 +836,7 @@ trait PeerHandler
*/
public function refreshFullPeerCache($id): \Generator
{
yield $this->full_chats->unset(yield $this->getInfo($id)['bot_api_id']);
yield $this->full_chats->unset((yield from $this->getInfo($id))['bot_api_id']);
yield from $this->getFullInfo($id);
}
/**