temperature->now->getValue(); }, array_filter( iterator_to_array( (new OpenWeatherMap(OWM_API_KEY))->getWeatherForecast(2063523, 'metric', 'en', '', 2) ), function($forecast) { $forecastDayLocal = DateTimeImmutable::createFromMutable($forecast->time->from)->setTimezone(new DateTimeZone('Australia/Perth')); return (int)(new DateTimeImmutable())->format('d') + 1 == (int)$forecastDayLocal->format('d'); } ))); getTelegram()->sendMessage( [ 'chat_id' => array_flip(PARTICIPANT_IDS)['Cam'], 'text' => max($temps) > 30 ? getString('goodnightWearShorts', ceil($temps[1]) . '°', ceil(max($temps)) . '°') : getString('goodnightNormal', ceil($temps[1]) . '°', ceil(max($temps)) . '°'), ] ); getTelegram()->sendMessage(['chat_id' => array_flip(PARTICIPANT_IDS)['Cam'], 'text' => getString('goodnight')]); getTelegram()->sendSticker(['chat_id' => array_flip(PARTICIPANT_IDS)['Cam'], 'sticker' => 'CAADBQAD1A4AAsZRxhX9dbtZf_4i_wI',]);