Twitter pst robot

Can I make a bot Tweet a post on Twitter automatically every set number of hours

No, that will get a bot profile banned.

Yes, you can, just use Twitter API for this, so you won’t have problems:

Depending on the kind of bot you will make, you can set the profile as a bot managed by another account or something like this. See more info about this here: Sobre identificação automática de contas com etiquetas

So what kind of coding can we do in the background to tweet?
I didn’t have an idea about the coding exactly.

Read the api and you will understand. if you don’t, you will probably have to hire someone to do this for you, since it will require some knowledge