Baed on Alexander's work, myself I realized a github project to show how to use webhooks integration:
http://www.github.com/solyaris/BOTServer