updated according to API v1
chat example updated