Larabros\Elogram\Repositories\LocationsRepository::getRecentMedia PHP Method

getRecentMedia() public method

Get a list of recent media objects from a given location.
public getRecentMedia ( string $id, string | null $minId = null, string | null $maxId = null ) : Response
$id string The ID of the location
$minId string | null Return media before this min_id
$maxId string | null Return media after this max_id
return Larabros\Elogram\Http\Response
    public function getRecentMedia($id, $minId = null, $maxId = null)
    {
        $params = ['query' => ['min_id' => $minId, 'max_id' => $maxId]];
        return $this->client->request('GET', "locations/{$id}/media/recent", $params);
    }