(a) A person commits the crime of bribery if:
(1) He offers, confers or agrees to confer any thing of value upon a public servant with the intent that the public servant's vote, opinion, judgment, exercise of discretion or other action in his official capacity will thereby be corruptly influenced; or
(2) While a public servant, he solicits, accepts or agrees to accept any pecuniary benefit upon an agreement or understanding that his vote, opinion, judgment, exercise of discretion or other action as a public servant will thereby be corruptly influenced.
(b) It is not a defense to a prosecution under this section that the person sought to be influenced was not qualified to act in the desired way, whether because he had not yet assumed office, lacked jurisdiction or for any other reason.
(c) Bribery is a Class C felony.