$actions_count = DB::queryFirstRow("SELECT SUM(`actionitem`) as actions_count FROM actions WHERE exchange_id = %i AND action_time > NOW() - INTERVAL 4 HOUR", $chatid);
DB::query("UPDATE exchanges SET ep=%i, visited=%? WHERE chatid=%i", $score, $time, $chatid);
DB::insert('actions', [
'exchange_id' => $chatid,
'action_time' => DB::sqleval("NOW()"),
'actionitem' => $levelOne,
]);
<div class="videos__list">
<div class="col-sm-3 project__item videos_page">
<a class="service service-news youTuber" href="https://www.youtube.com/watch?v=14quGogZBvs&t=66s">
<div>
<div class="service__image service__video" style="background-image: url(http://img.youtube.com/vi/14quGogZBvs/0.jpg); background-repeat: no-repeat; background-size: cover;"></div>
</div>
<div class="service__info">
<div class="service__title">Пневматическая стойка METROL 400</div>
<div class="service__date">23 июль 2019</div>
</div>
</a>
</div>
<div class="col-sm-3 project__item videos_page">
<a class="service service-news youTuber" href="https://www.youtube.com/watch?v=91oVAWOy2Ag&t=1s">
<div>
<div class="service__image service__video" style="background-image: url(http://img.youtube.com/vi/91oVAWOy2Ag/0.jpg); background-repeat: no-repeat; background-size: cover;"></div>
</div>
<div class="service__info">
<div class="service__title">Гидравлическая помпа 214</div>
<div class="service__date">26 сен 2019</div>
</div>
</a>
</div>
<div class="col-sm-3 project__item videos_page">
<a class="service service-news youTuber" href="https://www.youtube.com/watch?v=6gNuDyM7AYQ&t=21s">
<div>
<div class="service__image service__video" style="background-image: url(http://img.youtube.com/vi/6gNuDyM7AYQ/0.jpg); background-repeat: no-repeat; background-size: cover;"></div>
</div>
<div class="service__info">
<div class="service__title">Цифровой манометр METROL 100</div>
<div class="service__date">07 окт 2019</div>
</div>
</a>
</div>
<div class="col-sm-3 project__item videos_page">
<a class="service service-news youTuber" href="https://www.youtube.com/watch?v=Jf91IA8Z3lA">
<div>
<div class="service__image service__video" style="background-image: url(http://img.youtube.com/vi/Jf91IA8Z3lA/0.jpg); background-repeat: no-repeat; background-size: cover;"></div>
</div>
<div class="service__info">
<div class="service__title">Пневматическа помпа METROL 206</div>
<div class="service__date">23 янв 2020</div>
</div>
</a>
</div>
<div class="col-sm-3 project__item videos_page">
<a class="service service-news youTuber" href="https://www.youtube.com/watch?v=GIaTRDQkt44">
<div>
<div class="service__image service__video" style="background-image: url(http://img.youtube.com/vi/GIaTRDQkt44/0.jpg); background-repeat: no-repeat; background-size: cover;"></div>
</div>
<div class="service__info">
<div class="service__title">Цифровой манометр METROL 110 - Обзор цифрового манометра</div>
<div class="service__date">31 янв 2020</div>
</div>
</a>
</div>
<div class="col-sm-3 project__item videos_page">
<a class="service service-news youTuber" href="https://www.youtube.com/watch?v=EXSsSzNU8mk">
<div>
<div class="service__image service__video" style="background-image: url(http://img.youtube.com/vi/EXSsSzNU8mk/0.jpg); background-repeat: no-repeat; background-size: cover;"></div>
</div>
<div class="service__info">
<div class="service__title">Пневматическая помпа METROL 201- Обзор</div>
<div class="service__date">10 фев 2020</div>
</div>
</a>
</div>
</div>
<div class="videos__list">
<div class="col-sm-3 project__item videos_page">
<a class="service service-news youTuber" href="https://www.youtube.com/watch?v=Pdu0t93GudA">
<div>
<div class="service__image service__video" style="background-image: url(http://img.youtube.com/vi/Pdu0t93GudA/0.jpg); background-repeat: no-repeat; background-size: cover;"></div>
</div>
<div class="service__info">
<div class="service__title">Автоматическая система предотвращения загрязнения Mensor A-CPS</div>
<div class="service__date">26 июль 2019</div>
</div>
</a>
</div>
<div class="col-sm-3 project__item videos_page">
<a class="service service-news youTuber" href="https://www.youtube.com/watch?v=4vbo4cLH9Zs&t=17s">
<div>
<div class="service__image service__video" style="background-image: url(http://img.youtube.com/vi/4vbo4cLH9Zs/0.jpg); background-repeat: no-repeat; background-size: cover;"></div>
</div>
<div class="service__info">
<div class="service__title">Прецизионный индикатор давления CPG2500</div>
<div class="service__date">26 июль 2019</div>
</div>
</a>
</div>
<div class="col-sm-3 project__item videos_page">
<a class="service service-news youTuber" href="https://www.youtube.com/watch?v=c0XpjsqJ3YA&t=47s">
<div>
<div class="service__image service__video" style="background-image: url(http://img.youtube.com/vi/c0XpjsqJ3YA/0.jpg); background-repeat: no-repeat; background-size: cover;"></div>
</div>
<div class="service__info">
<div class="service__title">Прецизионный индикатор давления CPG2500. Как работать с CPG2500</div>
<div class="service__date">26 июль 2019</div>
</div>
</a>
</div>
<div class="col-sm-3 project__item videos_page">
<a class="service service-news youTuber" href="https://www.youtube.com/watch?v=2Ix450eSfs0&t=40s">
<div>
<div class="service__image service__video" style="background-image: url(http://img.youtube.com/vi/2Ix450eSfs0/0.jpg); background-repeat: no-repeat; background-size: cover;"></div>
</div>
<div class="service__info">
<div class="service__title">Обзор промышленного контроллера давления CPC4000</div>
<div class="service__date">26 июль 2019</div>
</div>
</a>
</div>
<div class="col-sm-3 project__item videos_page">
<a class="service service-news youTuber" href="https://www.youtube.com/watch?v=uYXVsOUv8F4&t=6s">
<div>
<div class="service__image service__video" style="background-image: url(http://img.youtube.com/vi/uYXVsOUv8F4/0.jpg); background-repeat: no-repeat; background-size: cover;"></div>
</div>
<div class="service__info">
<div class="service__title">Обзор модульного контроллера давления CPC6050</div>
<div class="service__date">26 июль 2019</div>
</div>
</a>
</div>
<div class="col-sm-3 project__item videos_page">
<a class="service service-news youTuber" href="https://www.youtube.com/watch?v=LsEKLcDBfmU&t=6s">
<div>
<div class="service__image service__video" style="background-image: url(http://img.youtube.com/vi/LsEKLcDBfmU/0.jpg); background-repeat: no-repeat; background-size: cover;"></div>
</div>
<div class="service__info">
<div class="service__title">Опции модульного контроллера давления CPC6050</div>
<div class="service__date">26 июль 2019</div>
</div>
</a>
</div>
</div>
По поводу накрутку - стоит валидация данных, которые приходят от телеги.