How can I configure my chatbot with Google chat channel(not Hangouts)

I already used the methods given to add channel google hangouts…but its not working with google chat. Now I need answers to following questions. Which credentials to add in credentials.yml? How to write custom channel for google chat(I have created incoming webhook for google chat which contains space id and acces token in it)