Added initial implementation of chat state for text channel.