The error suggests that chat.get() returns a list, which can be iterated like so:
for c in chat.get(): # do what you need to here