mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-30 07:58:58 +01:00
This commit is contained in:
parent
4d66b01aeb
commit
4a066cd3f3
@ -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);
|
||||
}
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user