There is only two ways your iPhone git a bot. Either it is jailbroken and you are the victim of some exploit. Or, you unlocked it, handed it to someone and left to go off, connect it to a computer and hack it to install one.
If none of those are true, then you do not have a bot on your phone.
Does anyone else know your AppleID password or use your AppleID?