Skip to content

Commit f7ff004

Browse files
committed
Minor fix
1 parent bc29585 commit f7ff004

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Telegram/Bot.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,14 @@ public function updates(?int $offset = null): ?Updates{
6969
"offset" => $offset + 1
7070
])->body);
7171

72-
}else{
72+
}else if($this->updatesMethod === self::UPDATES_FROM_WEBHOOK){
7373

7474
return new Updates(json_decode(file_get_contents("php://input")));
7575

76+
} else{
77+
78+
return NULL;
79+
7680
}
7781
}
7882

0 commit comments

Comments
 (0)