Wechaty
Conversational RPA SDK for chatbot makers
... offers out-of-the box support for the common features you'd expect from turning your IM account into chatbot, and can be easily customised and extended by developers to create a chatbot that is tailored to their precise needs. Wechaty support lots of popular instant messaging platforms. And you can write Wechaty in almost all popular programming languages.