def is_chat(message):
    """
    Checks that message has chat message.
    Return (from, to) or None.
    """
    try:
        if message['action'] == 'chat':
            return message['from'], message['to']
    except Exception:
        pass
    return None
