file_ids from @JsonDumpBot are not valid for your bot. For your bot you can do something like this. <?php file_put_contents("dumpfile.txt", file_get_contents("php://input"));
Does the function bot() really require the reply markup to be json encoded?