diff --git a/src/danog/MadelineProto/MTProtoTools/PeerHandler.php b/src/danog/MadelineProto/MTProtoTools/PeerHandler.php index bf552138..b370a32d 100644 --- a/src/danog/MadelineProto/MTProtoTools/PeerHandler.php +++ b/src/danog/MadelineProto/MTProtoTools/PeerHandler.php @@ -265,13 +265,12 @@ trait PeerHandler public function full_chat_last_updated($id) { - $id = $this->get_info($id)['bot_api_id']; - return isset($this->full_chats[$id]['last_update']) ? $this->full_chats[$id]['last_update'] : 0; } public function get_full_info($id) { + $id = $this->get_info($id)['bot_api_id']; if (time() - $this->full_chat_last_updated($id) < (isset($this->settings['peer']['full_info_cache_time']) ? $this->settings['peer']['full_info_cache_time'] : 0)) { return $this->full_chats[$id]; }