'sticker' => 'CAADBQADOgAD__7RBxFhadMBV3g5Ag'
]);
- if (!array_diff($completedTasks, $tasksForTheWeek)) {
+ if (!array_diff($tasksForTheWeek, $completedTasks)) {
getTelegram()->sendMessage([
'chat_id' => $chatid,
'text' => getString('heyTasksAllCompleted')
$completedTasks = file_exists($completedTasksFile) ? lines(trim(file_get_contents($completedTasksFile))) : [];
- if (!array_diff($completedTasks, $tasksForTheWeek)) {
+ if (!array_diff($tasksForTheWeek, $completedTasks)) {
$this->replyWithMessage([
'text' => getString('tasksAllCompleted')
]);